Answers for "java coding mcqs"

0

MCQ java

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");    
//11 is bad
//21 is good
Posted by: Guest on August-07-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language