byte b = 50;
b = b * 50;
a) b cannot contain value 50
b) b cannot contain value 100, limited by its range
c) No error in this code
d) * operator has converted b * 50 into int, which can not be converted to byte without casting
What will be the error in the following Java code?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the error in the following Java code?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!