Which class provides buffering capability to improve I/O performance?
What is the purpose of the mark() and reset() methods in buffered streams?
Consider a scenario where you need to read a line from a file. Which class would be most efficient?
What exception is thrown when attempting to deserialize an object with a different serialVersionUID?
Which stream class is used to write primitive data types in binary format?
Advertisement
In a multi-threaded application, what is a concern when sharing streams between threads?
What is the difference between InputStreamReader and FileReader?
Consider processing a 1GB file. Which approach would be most memory-efficient?
What does the available() method in InputStream return?
In Java NIO, which class is used for channel-based I/O?
What is the correct way to ensure resources are properly closed in Java 7+?
Given the code: PrintWriter pw = new PrintWriter(new FileWriter("file.txt")); What issue might occur?
What happens when you create a FileOutputStream with an existing file?
Which approach would you use to read and write objects to a file efficiently in a production application?
In a log aggregation system, what is the primary advantage of using RandomAccessFile over sequential streams?
Which of the following is NOT a character stream class in Java?
What is the default buffer size used by BufferedInputStream?
Which interface must be implemented to make an object serializable in Java?
In Java, what is the primary purpose of the flush() method in output streams?
Which class is used to read primitive data types and strings from a binary stream?