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

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

Master your knowledge of Java programming with our immersive quiz based on 'Thinking in Java'. Test your skills with detailed questions and receive hints and explanations to enhance your learning. Get ready to ace your Java exam!

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.


Which class is NOT part of the Java NIO package?

  1. ByteBuffer

  2. FileLock

  3. PipedOutputStream

  4. Selector

The correct answer is: PipedOutputStream

ByteBuffer, FileLock, and Selector are all classes in the Java NIO package. The only class not part of this package is PipedOutputStream, which is part of the java.io package. This option is incorrect because all other choices are valid classes in the Java NIO package.