Which of the following is a character stream class in Java?
What is the default buffer size of BufferedReader in Java?
Which method is used to read a single byte from a FileInputStream?
What happens when you try to read from a closed stream in Java?
Which of the following is a filtered stream?
Advertisement
What is the purpose of the flush() method in output streams?
Which class is used to read primitive data types from a stream?
What is the return type of FileInputStream's read() method?
Which of the following creates a bridge between character and byte streams?
What exception is thrown when a file is not found while creating FileInputStream?
Which method reads a complete line from a BufferedReader?
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?
In Java NIO, which class replaces traditional Stream-based I/O for better performance?
What happens if you call close() multiple times on a stream?
Which of the following is true about serialization in Java?
A Java program needs to read a file containing 10 million integers. Which approach would be most memory-efficient?