Question:Assuming that val has been defined as an int for the code below, which values of val will result in "Test C" being printed?
if( val > 4 ) { System.out.println("Test A"); } else if( val > 9 ) { System.out.println("Test B"); } else System.out.println("Test C");
A val < 0
B val between 0 and 4
C val between 4 and 9
D val > 9
E val = 0
F No values for val will result in "Test C" being printed.
+ AnswerB
+ Report