πŸ“Š JAVA
Q. What is the output of the Java code snippet?
Code:
short a = (short)65540;
System.out.println(a);
  • (A) 0
  • (B) 4
  • (C) 65536
  • (D) 65540
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
309
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate