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

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

Prepare for your Java exam with our ultimate quiz based on 'Thinking in Java'. Engage with expertly crafted questions that enhance your learning process. Perfect for Java enthusiasts looking to solidify their knowledge!

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.