Is type casting allowed in Java?

In Java, we can cast both reference and primitive data types . By using casting, data can not be changed but only the data type is changed. Note: type casting is not possible for a Boolean data type.15 Haz 2021

Sizin İçin Seçtik  What is type of class in Java?

Leave a Reply

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