KnowledgeBoat Logo
|

Computer Applications

What is typecasting in Java? Give an example.

Java Operators

26 Likes

Answer

The process of converting a value of one data type to another data type is called typecasting. For example:

int a = 10;
double b = 25.5;
float c = (float)(a + b);

Answered By

15 Likes


Related Questions