RRB Junior Engineer / DMS / CMA 2019 · Question 3688 of 3719
According to the Associativity Rule. class test {public static void main (String args [ ]) { System.out.println(20 + 30 + "Java"); ; // evaluated as (10 + 20) + "Java" System.out.println("Java" + 20 + 30); // evaluated as("Java" + 10) + 20 . } } So Output will be 50Java Java2030 Therefore option 4 is correct.
Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary
Practice the full RRB Junior Engineer / DMS / CMA 2019 paper
Timed test with all 3719 questions, just like the real exam.
Start test