mcq java

Solutions on MaxInterview for mcq java by the best coders in the world

showing results for - "mcq java"
Lennon
13 Mar 2019
1  What is the output of following code?        int i = 10;    if(i++ == i) 	 System.out.println(i + " is good");    else 	 System.out.println(i + " is bad");     int j = 20;    if(++j == j) 	 System.out.println(j + " is good");    else 	 System.out.println(j + " is bad");    
2//11 is bad
3//21 is good