Q. What is the output of Java code snippet below?
Code:
short p = 1; short k = p + 2; System.out.println(k);
β
Correct Answer: (D)
Compiler error
short p = 1; short k = p + 2; System.out.println(k);
You must be Logged in to update hint/solution