2.
What is the purpose of the `System.out.println()` method in Java?

4.
How can you close a file after reading or writing in Java?

5.
What is the purpose of the `FileInputStream` class in Java?

7.
What is the purpose of the `BufferedReader` class in Java?

9.
In Java, what does the `FileOutputStream` class do?

10.
What is the purpose of the `PrintWriter` class in Java?