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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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