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.


What is NOT a feature of Java?

  1. Garbage collection

  2. Multiple inheritance through classes

  3. Platform independence

  4. Secure execution environment

The correct answer is: Multiple inheritance through classes

Java does not support multiple inheritance through classes. Instead, it uses interfaces to achieve multiple inheritance. This is because multiple inheritance can result in conflicts and ambiguity in the code. Therefore, Java prevents this issue by not allowing multiple inheritance through classes. The other features, such as garbage collection, platform independence, and secure execution environment, are all essential and widely recognized features of Java.