Does Java have type checking?

Java is a statically typed language, so the compiler does most of this checking for you . Once you declare a variable to be a certain type, the compiler will ensure that it is only ever assigned values of that type (or values that are sub-types of that type).20 Kas 2011

Sizin İçin Seçtik  What is use of Instanceof in Java?

Leave a Reply

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