byte to char Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast byte to char as an example. The byte takes 1 byte of memory and char takes 2 bytes of memory. Here, casting rules do not work like 1 byte value can be assigned to 2 bytes implicitly, as …

byte to char Java Read More »