What may happen when a long is narrowed to int?
Answer & explanation
Answer: High-order bits may be discarded
Narrowing integer conversion can lose information without throwing an exception.
Practice types & casting with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: High-order bits may be discarded
Narrowing integer conversion can lose information without throwing an exception.