What is type conversion and casting in Java?

The process of converting a value from one data type to another is known as type conversion in Java. Type conversion is also known as type casting in java or simply ‘casting’. If two data types are compatible with each other, Java will perform such conversion automatically or implicitly for you.

Sizin İçin Seçtik  How primitive data types can be used as objects in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *