What is a field in Java?

A Java field is a variable inside a class . For instance, in a class representing an employee, the Employee class might contain the following fields: name. position. salary.

Sizin İçin Seçtik  Kamusal mallara ne denir?

Leave a Reply

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