Which of the following type conversions in Java will result in a loss of precision?
1 Like
double to int
double
int
Reason — A double may have a fractional part, which is truncated when converting to int, resulting in a loss of precision.
Answered By
2 Likes
The size of '\n' is:
Which of the following is a valid java keyword?