🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Inheritance and Polymorphism: all 10 questions

Quiz: Inheritance and Polymorphism · Question 4 of 10

Which class can't be extended?

Which class can't be extended?

  1. A.Object
  2. B.String
  3. C.ArrayList
  4. D.Exception
Answer & explanation

Correct answer: String

String is declared final.

Can you get the rest right without peeking?

Take the timed Quiz: Inheritance and Polymorphism quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →