1.

Explain access modifiers in Java.

Answer»

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


Discussion

No Comment Found