What is the default buffer size of BufferedReader in Java?
What happens when you try to read from a closed stream in Java?
Which of the following is a filtered stream?
Which class is used to read primitive data types from a stream?
Which of the following creates a bridge between character and byte streams?
Advertisement
What is the difference between FileInputStream and BufferedInputStream?
Which class allows reading and writing objects to a stream?
What is the mark() method used for in BufferedReader?
Which of the following statements will correctly read a file line by line?
What is the purpose of the skip() method in InputStream?
A Java program needs to read a file containing 10 million integers. Which approach would be most memory-efficient?
A serialized object contains a field marked as 'transient'. What happens to this field when the object is deserialized?
Which statement about ObjectOutputStream.reset() is correct?
When implementing Externalizable interface, which method is mandatory?
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?
What happens when you write to a closed PrintWriter?
Which scenario would require using a SequenceInputStream?
A file contains 1000 lines. Using BufferedReader.readLine() repeatedly reads all lines. What is the time complexity?
What exception is thrown when trying to deserialize an object that was serialized with a different serialVersionUID?