1. Home
  2. Computer Science MCQs
  3. JAVA
  4. Which feature allows a subclass to provide its own…

Added 2 Nov 2026

Which feature allows a subclass to provide its own implementation of a method defined in its superclass?

  1. Method overloading
  2. Method overriding Correct answer
  3. Abstraction
  4. Encapsulation

Correct answer

B. Method overriding

15 views

MCQSEXAM

Explanation

Overriding replaces an inherited method with the same signature and enables runtime polymorphism. Overloading means several methods with the same name but different parameter lists in one class.

Reference

Asked in: NTS, PPSC, OCA Java

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More JAVA MCQs

Practise all JAVA MCQs

Similar MCQs