What is typecasting in java

Mitali sahuMitali sahu
1 min read

Type is the process of conversion of variable from one data type to another data type.

We have mainly two type of type casting i.e. Implicit typecasting and explicit typecasting.

The implicit typecasting is done automatically by the compiler to convert the variable data type from small data type to large data type .

The explicit typecasting is done by the programmer from large data type to small data type and explicit type casting may also lead to lose of data.

0
Subscribe to my newsletter

Read articles from Mitali sahu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mitali sahu
Mitali sahu