Which of the following correctly demonstrates chaining multiple filters in Java I/O?
A serialized object contains a field marked as 'transient'. What happens to this field when the object is deserialized?
In a multi-threaded environment, which stream class provides thread-safe read/write operations without external synchronization?
What will be the output of reading from a ByteArrayInputStream initialized with bytes [65, 66, 67] after calling read() three times?
A developer uses PipedInputStream and PipedOutputStream in the same thread. What will happen?
Advertisement
Which statement about ObjectOutputStream.reset() is correct?
When implementing Externalizable interface, which method is mandatory?
A RandomAccessFile is opened with mode 'r'. Which operation will throw an exception?
In a CSV file processing application, why is BufferedReader preferred over FileReader for reading large files?
What is the serialVersionUID used for in Java serialization?
A program reads a 1 GB binary file and needs to modify specific bytes at random positions. Which class is most suitable?
What happens when you write to a closed PrintWriter?
In Java NIO, what is the primary advantage of FileChannel over traditional streams?
Which scenario would require using a SequenceInputStream?
A file contains 1000 lines. Using BufferedReader.readLine() repeatedly reads all lines. What is the time complexity?
When using ObjectInputStream, what exception is thrown if the serialVersionUID doesn't match?
For a real-time log file monitoring application, which approach is most suitable?
Which class in Java I/O streams is used to read primitive data types from a binary file?
What is the purpose of the flush() method in PrintWriter?
Which of the following is a character-based stream in Java?