What are types of Java modifier?

Four modifiers in Java include public, private, protected and default. Private and Protected keywords cannot be used for classes and interfaces.

Leave a Reply

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