Mega Code Archive

 
Categories / Java Tutorial / Data Type
 

The Widening Conversion

The widening conversion is permitted in the following cases: byte to short, int, long, float, or double Short to int, long, float, or double char to int, long, float, or double int to long, float, or double long to float or double float to double