Q. What will be the error in the following Java code?
byte b = 50;
b = b * 50;

  • (A) b cannot contain value 100, limited by its range
  • (B) 24
  • (C) b cannot contain value 50
  • (D) No error in this code
πŸ’¬ Discuss
βœ… Correct Answer: (B) 24

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
108
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
83%
Success Rate