ICSE Class 10 Computer Applications
Question 8 of 76
Revising Basic Java Concepts — Question 12
Back to all questions 12
Question Question 9
What do you mean by type casting? What is type cast operator in Java?
The explicit conversion of an operand to a specific type is called Type Casting.
Type Casting in Java is done using the type cast operator. It is a unary operator. It's syntax is:
(<target datatype>) <value>
For example :
int a = 10;
double b = 25.5;
float c = (float)(a + b);