long to char Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast long to char as an example. The long takes 8 bytes of memory and char takes 2 bytes of memory. Assignment of 8 bytes of memory to 2 bytes of memory requires explicit casting. Moreover, long can take …

long to char Java Read More »