char to float Java

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

char to float Java Read More »