What is declaration and definition in Java?

Declaration: You are declaring that something exists, such as a class, function or variable. You don’t say anything about what that class or function looks like, you just say that it exists. Definition: You define how something is implemented, such as a class, function or variable, i.e. you say what it actually is.

Sizin İçin Seçtik  What are the 4 features of Java?

Leave a Reply

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