1Z0-829 Java I/O API and Securing Applications Practice Question
Which THREE statements are true about Java NIO.2 and its interaction with blocking I/O? (Choose three.)
⚠ Common exam trap
A common mix-up: candidates confuse the blocking nature of FileChannel with NIO.2's non-blocking channels, or they mistakenly think BufferedInputStream is a correct answer because it is a valid I/O class, but it is not related to NIO.2 and does not fit the question's focus on NIO.2 and blocking I/O interaction.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A Selector can be used to manage multiple non-blocking channels.
A Selector in Java NIO.2 is specifically designed to manage multiple non-blocking channels, enabling a single thread to monitor I/O readiness across many channels. This is a core feature of the NIO.2 multiplexed I/O model, where channels must be configured in non-blocking mode to be registered with a Selector.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A Selector can be used to manage multiple non-blocking channels.
Why this is correct
A Selector can monitor multiple non-blocking channels.
- ✓
Files.walk() returns a Stream<Path> that lazily populates.
Why this is correct
Files.walk() returns a Stream<Path> that traverses the directory tree.
- ✗
FileChannel operations are always non-blocking.
Why it's wrong here
FileChannel is blocking by default; can be set to non-blocking but not always.
- ✗
BufferedInputStream extends FilterInputStream.
Why it's wrong here
True, but it's about java.io, not NIO.2.
- ✓
Paths.get() is a factory method for obtaining a Path object.
Why this is correct
Paths.get() is a convenient way to create Path instances.
Go deeper
Related to this question
About these practice questions
This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.