short to char Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast short to char. The char and short, each takes 2 byte of memory. Assignment of short to char requires explicit casting as short can take negative values also but char does not. See the data types order to …

short to char Java Read More »