char to long Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast char to long. The long takes 8 bytes of memory and char takes 2 bytes of memory. 2 bytes memory value can be assigned to 8 bytes value and is done implicitly by JVM. But the reverse operation, …

char to long Java Read More »