1. Java’s Automatic Conversions

When one type of data type is assigned to another data type value then java will convert the data types automatically under two conditions.
1. The two types are compatible to each other
2. The destination type is of larger range than the source type.

For example, an Byte is internally casted to int, because int has range larger than that of byte range.
but the vice versa conversion will result in an error