Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
Source by www.pepcoding.com #
 
PREVIOUS NEXT
Tagged: #MCQ #java
ADD COMMENT
Topic
Name
7+6 =