1. Home
  2. Computer Science MCQs
  3. JAVA
  4. Which keyword prevents a method from being overridden in a…

Added 2 Nov 2026

Which keyword prevents a method from being overridden in a subclass?

  1. volatile
  2. transient
  3. abstract
  4. final Correct answer

Correct answer

D. final

14 views

MCQSEXAM

Explanation

A final method cannot be overridden, and a final class cannot be extended. An abstract method is the opposite, since it must be overridden. transient and volatile apply only to fields.

Reference

Asked in: NTS, PPSC, FPSC, OCA Java

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? 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