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