Multiple choice technology web technology

If the method to be overridden has access type protected, choose access types among the following that a subclass can have,

  1. Protected

  2. Private

  3. Public

  4. Public & private

  5. Protected & Public

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Java's access modifiers follow this order: private (most restrictive) → default (package) → protected → public (least restrictive). When overriding a method, the subclass cannot make it more restrictive than the parent. A protected method can be overridden as protected or public, but NOT private (too restrictive) or default (package-private).