Java MCQ: Automatic type conversion is possible in which of the possible cases?
a) When the source type is larger than the destination type
b) When the source type is smaller than the destination type
c) When the types are incompatible
d) None of the above
Answer:
b) When the source type is smaller than the destination type
Explanation:
Automatic type conversion, also known as widening conversion, happens when a source type is smaller than the destination type. For example, an int can be automatically converted to a long, float, or double.
Reference links:
https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html