Q. What is the output of the Java code snippet?
Code:
short a = (short)65540; System.out.println(a);
β
Correct Answer: (B)
4
short a = (short)65540; System.out.println(a);
You must be Logged in to update hint/solution