Loading…

Explain access modifiers in Java.

Access modifiers help to restrict the scope of a class, variable, constructor, method or data.

Four types of access modifiers are available:

  • Default
  • Private
  • Protected
  • Public

Suggest An Answer

No suggestions avaliable!

Latest post from Core Java interview questions

Ask Question