Computer Applications
int x = (int) 32.8;
It is an example of …………… type casting.
- implicit
- automatic
- explicit
- coercion
Values & Data Types Java
3 Likes
Answer
explicit
Reason — In explicit type conversion, the data gets converted to a type as specified by the programmer. Here, the float value 32.8 is being converted to int type by the programmer, explicitly.
Answered By
1 Like
Related Questions
Which of the following ASCII code range is applicable for lowercase letters?
- 65 - 90
- 90 - 115
- 97 - 122
- 95 - 110
Which of the following is an escape sequence character in Java ?
- /n
- \t
- /t
- //n
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.
There are 128 set of different characters used in a Java program.