KnowledgeBoat Logo
|

Computer Applications

Explain the term type casting.

Values & Data Types Java

ICSE 2007

205 Likes

Answer

Type casting is a data conversion in which the data type of the result in a mixed mode expression, gets converted into a specific type as per user's choice. The choice of data type must be written within braces ( ) before the expression.
For example,

int a; float b; char c;
char d = (char) (a + b * c);

Answered By

126 Likes


Related Questions