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

Quiz: Object Initialization Order · Question 10 of 10

Which kind of method is safe to call from a constructor?

Which kind of method is safe to call from a constructor?

  1. A.Any public method
  2. B.An abstract method
  3. C.A method overridden in a subclass
  4. D.A private or final method
Answer & explanation

Correct answer: A private or final method

Private and final methods cannot be overridden, so the class's own version always runs.

Can you get the rest right without peeking?

Take the timed Quiz: Object Initialization Order quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →