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
3 Likes
int x = 98; char ch = (char)x; what is the value in ch?
The number of bytes occupied by a character array of four rows and three columns are:
Which of the following is a valid java keyword?