πŸ“Š JAVA
Q. What is the error in this code? byte b = 50; b = b * 50;
  • (A) b can not store the result 2500, limited by its range.
  • (B) * operator has converted b * 50 into int, which can not be converted to byte without casting.
  • (C) b can not contain value 50.
  • (D) No error in this code
πŸ’¬ Discuss
βœ… Correct Answer: (B) * operator has converted b * 50 into int, which can not be converted to byte without casting.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
158
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate