Computer Applications

Which of the following is NOT an access specifier?

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

Encapsulation & Inheritance in Java

4 Likes

Answer

package

Reason — In Java, the valid access specifiers are private, protected, and public.

Answered By

2 Likes


Related Questions