double to char Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast double to char. By memory-wise, double takes 8 bytes of memory and char take 2 bytes of memory. Assignment of 8 bytes value to 2 bytes value requires explicit casting. Moreover, double can take a negative value, but …

double to char Java Read More »