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