When does automatic type conversion occur in Java?
Explanation
Automatic type conversion in Java happens only when the two types involved are compatible and the destination type has a larger size than the source type, ensuring no loss of data.
Automatic type conversion in Java happens only when the two types involved are compatible and the destination type has a larger size than the source type, ensuring no loss of data.