Computer Applications
Read the following text and choose the correct answer:
In an implicit type conversion, the result of an expression is obtained in the higher most data type without any intervention of the user.
What does an implicit do ?
- It arranges the data of an expression.
- The user involves to get the desired result of an expression.
- By default, the expression gets into higher data type in this conversion.
- The user has a choice to get the desired data type.
Answer
By default, the expression gets into higher data type in this conversion.
Reason — In Java, when we mix different data types in a calculation (like int and double), Java automatically changes the smaller type to a bigger type. This is called implicit type conversion. It happens by default, and the user doesn’t need to do anything. This helps in getting the correct result without any error.