1.

What will be the output of the program? class Test { public static void main(String [] args) { int x=20; String sup = (x < 15) ? "small" : (x < 22)? "tiny" : "huge"; System.out.println(sup); } }

A. Small
B. Tiny
C. Huge
D. Compilation fails
Answer» C. Huge


Discussion

No Comment Found