← 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?
- A.Any public method
- B.An abstract method
- C.A method overridden in a subclass
- 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 →