Computer Applications

What will be the output of the following code?


int size = 2;
if (size < 0)
System.out.println("Small");
else if (size == 0)
System.out.println("Medium");
else
System.out.printIn("Large");
  1. Small
  2. Large
  3. Medium
  4. Runtime error

Java Conditional Stmts

4 Likes

Answer

Large

Answered By

3 Likes


Related Questions