Multiple choice

When methods with the same name appears in both superclass and subclass, then only __________ method is invoked.

  1. subclass

  2. static

  3. final

  4. finalize

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

When methods with same name appears in both superclass and subclass, then only subclass method is invoked. So, it is said that the method of subclass overrides the method of superclass.