πŸ“Š JAVA
Q. What is the output of the Java code snippet?
Code:
byte b = 25;
b++;
b = b+1;
System.out.println(b);
  • (A) 25
  • (B) 26
  • (C) 27
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compiler error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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