State with reason why the following are in correct
(i) int a=5;
short b=a;
Answers
Answered by
1
Answer:
This is not accepted in Java.
Explanation:
The reason for this is because, the range of an int data structure is b/w to -1, whereas the range for short is to .
Similar questions