Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Dive into the depths of Java with our quiz based on "Thinking in Java, Fourth Edition" by Bruce Eckel. Test your knowledge, solidify concepts, and prepare for certification with challenging questions and insightful feedback.

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Are member initializers called before or after the base-class constructor in Java?

  1. Before

  2. After

  3. Simultaneously

  4. Not called

The correct answer is: After

Member initializers in Java are called after the base-class constructor. This is because member initializers are included within the body of the constructor, which means they will only execute after the constructor has been called. Option A and C are incorrect because they suggest that member initializers are called before or simultaneously with the base-class constructor, which is not the case. Option D is also incorrect because member initializers are indeed called in Java, just after the base-class constructor.