Solved

What Will Be Output After the Following Java Statements Have

Question 8

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