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

Quiz: Abstract Classes and Interfaces · Question 1 of 10

Can you create an object of an abstract class with new?

Can you create an object of an abstract class with new?

  1. A.Yes, always
  2. B.No
  3. C.Only if it has a constructor
  4. D.Only inside main
Answer & explanation

Correct answer: No

Abstract classes can't be instantiated, though they can have constructors used by subclasses.

Can you get the rest right without peeking?

Take the timed Quiz: Abstract Classes and Interfaces quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →