Interviews - C# Corner

Rohit Gupta
What is an Access Modifier in Java? What all access modifiers are provided by Java?
By Rohit Gupta in Java onSep 10 2019
  • Vijay Kumari
    Sep, 2019 16

    The access Modifiers gives as the accessibility (scope) of a java class, data member, method, or a constructor. Access Modifiers helps us to set the level of access for our java class, variables, and methods.

    There are four access modifiers provided by Java:

    1. public
    2. private
    3. protected
    4. default

    For a detailed tutorial on Java access modifiers, visit https://www.c-sharpcorner.com/article/a-complete-java-classes-tutorial/

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS