June 2018
Beginner
722 pages
18h 47m
English
The narrowing conversion of numeric primitive types occurs in the opposite direction—from the wider type to the narrower one—and typically requires casting. The Java specification identifies 22 narrowing primitive conversions:
It can result in a loss of magnitude of the value and possibly in loss of precision too. The narrowing procedure is more complicated than the widening one and discussion of it is beyond the scope of an introductory course. The least one can do is to make sure that the original value is smaller than the maximum value ...
Read now
Unlock full access