What is public in Java with example?

The public keyword is an access modifier used for classes, attributes, methods and constructors, making them accessible by any other class .

Sizin İçin Seçtik  What is object and class in Java with example?

Leave a Reply

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