Multiple choice technology programming languages

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. 2&3

  5. 1&3

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

When overriding a protected method in Java, the subclass method must have the same or wider access modifier. Protected is the baseline, so valid options are Protected (same) or Public (wider). Private is narrower and thus invalid. Option E correctly identifies Protected and Public as valid.