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

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

Mastering Java: The Ultimate Quiz for 'Thinking in Java'. Dive deep into Java with multiple-choice questions. Challenge yourself with quiz questions designed to test and improve your understanding of the 'Thinking in Java' book. Get ready for your exam!

Practice this question and more.


Which version of Java introduced the Java Foundation Classes (JFC), including Swing?

  1. Java 1.0

  2. Java 1.1

  3. Java 2 (JDK 1.2)

  4. Java 3

The correct answer is: Java 2 (JDK 1.2)

The Java Foundation Classes (JFC) were first introduced in Java 2 (JDK 1.2). This means that options A, B, and D are incorrect as they are versions before Java 2. While Java 3 may seem like a reasonable answer, there is no official version of Java known as Java 3. It is important to pay attention to the version numbers and their corresponding features when trying to answer Java-related questions.