Question 1 of 25
Hints left: 3
Q1
What is the purpose of the `BufferedReader` class in Java?
Q2
Which class is used to write primitive data types to an output stream in Java?
Q3
In Java, what does the `FileOutputStream` class do?
Q4
In Java, what does the `DataOutputStream` class do?
Q5
In Java, how can you check if a file or directory exists using the `File` class?
Q6
In Java, which method is used to write binary data to a file?
Q7
Which method is used to delete a file or directory in Java?
Q8
In Java, what is the primary purpose of the `PrintStream` class?
Q9
What is the difference between reading and writing character streams in Java?
Q10
What is the purpose of the `RandomAccessFile` class in Java?
Q11
Which method is used to read a line of text from the keyboard in Java?
Q12
What is the purpose of the `PrintWriter` class in Java?
Q13
In Java, what is the purpose of the `BufferedWriter` class?
Q14
Which class is used to write formatted text to a file in Java?
Q15
What is the purpose of the `FileWriter` class in Java?
Q16
What is the primary purpose of the `File` class in Java?
Q17
In Java, which class is used to read binary data from an input stream?
Q18
What is the purpose of the `FileInputStream` class in Java?
Q19
In Java, which class is used to read and write character streams?
Q20
In Java, what is the purpose of the `File.separator` constant?
Q21
Which class is used for reading character streams in a platform-independent way in Java?
Q22
In Java, what is the primary purpose of the `DataInputStream` class?
Q23
Which class is used to read data from a file in Java?
Q24
Which class is used to write binary data to a file in Java?
Q25
What is the difference between character streams and byte streams in Java?