Java I/O API
5 practice questions under this official exam objective (1Z0-819) — each with the community-verified answer, a full option-by-option explanation and instant feedback.
FileReader buffer read behavior in Java
This question tests the behavior of FileReader when reading into a fixed-size char array buffer. It establishes that only the characters actually read
What Is the Output of Console readLine and readPassword?
This 1Z0-819 question tests Console.readLine and Console.readPassword plus how String.valueOf(char[]) renders the password. It establishes that the co
Which Action Makes Java Deserialization Print Wagon : 200?
This 1Z0-829 question centers on reading a serialized Car object back with ObjectInputStream, whose readObject() method declares both IOException and
Java Serialization Constructor Execution and Output
This question tests the behavior of Java serialization regarding constructor invocation during deserialization. It establishes that constructors are n
Java Files.readAllLines Indexing Behavior
This question tests Java I/O API usage with Files.readAllLines, establishing that the method returns a List with zero-based indexing where valid indic