Solved

What Will Be Output After the Following Java Statements Have

Question 19

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions