The narrowing conversions cannot be made implicitly. If you attempt such conversions, the compiler will give an error message. An explicit conversion is needed in such situations. This can be done as follows: destination-data-type variable-name1 = (destination-data-type) variable-name2; Example:- Int x=10; byte b=(byte) x; In the above example an integer variable is explicitly converted to byte and stored in a byte location. The explicit numeric conversions are the conversions from a numeric-type to another numeric-type. The following list shows the situations where an explicit numeric conversion is needed.
The explicit numeric conversion may cause loss of precision or result in throwing exceptions.