KnowledgeBoat Logo

Computer Applications

Which of the following type conversions in Java will result in a loss of precision?

Values & Data Types Java

2 Likes

Answer

double to 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


Related Questions