Multiple Choice
What will be output after the following Java statements have been executed (assume all variables are of type int) ?
A = 4;
B = 12;
C = 37;
D = 51;
If ( a < b )
System.out.println( "a < b" ) ;
If ( a > b )
System.out.println( "a > b" ) ;
If ( d <= c )
System.out.println( "d <= c" ) ;
If ( c != d )
System.out.println( "c != d" ) ;
A) a < b c != d
B) a < b d <= c
C != d
C) a > b c != d
D) a < b c < d
A != b
Correct Answer:

Verified
Correct Answer:
Verified
Q5: When method printf requires multiple arguments,the arguments
Q8: Optional parentheses in expressions are said to
Q10: Which of the following is the escape
Q14: What is the value of result after
Q18: Which command executes the Java class file
Q19: Which of the following does not contain
Q21: The filename for the public class that
Q21: Which is the output of the following
Q25: Which of the following is not a
Q28: Java's predefined classes are grouped into<br>A) packets.<br>B)