Computer Applications
int x = (int)32.8; is an example of …………… typecasting.
- implicit
- automatic
- explicit
- coercion
Values & Data Types Java
ICSE 2023
23 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
10 Likes
Related Questions
The String class method to join two strings is:
- concat(String)
- <string>.joint(string)
- concat(char)
- Concat()
The output of the function "COMPOSITION".substring(3, 6):
- POSI
- POS
- MPO
- MPOS
The code obtained after compilation is known as:
- source code
- object code
- machine code
- java byte code
Missing a semicolon in a statement is what type of error?
- Logical
- Syntax
- Runtime
- No error