short to float Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast short to float. The short takes 2 byte of memory and float takes 4 bytes of memory. Assignment 2 bytes of memory to 4 byte of memory is done implicitly by JVM. This is known as widening conversion. …

short to float Java Read More »