Hello Sri, What will print 'test 2'? if (a >4) System.out.println("test1"); else if (a >9) System.out.println("test2"); else System.out.println("test3"); A. less than 0 B. less than 4 C. between 4 and 9 D. greater than 9 E. none Sri, "test 2 " will never be printed bcoz of the earlier "if ". If a is greater than 4, the first "if" satisfies the condition so "test 1" is printed. Note 9 is obviously greater than 4 ...right ? which satisfies the first condition. Hope u got it.
ALL THE BEST FOR UR EXAM. Aruna
Your mother is a hamster and your father smells of tiny ads!
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!