short to int Java

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

short to int Java Read More »