Java IO Serialization

Ā© examsiri.com
Question : 8 of 17
 
Marks: +1, -0
Given:
1. class MakeFile {
2. ā€ƒ public static void main(String[] args) {
3. ā€ƒā€ƒ try {
4. ā€ƒā€ƒā€ƒ File directory = new File(ā€dā€);
5. ā€ƒā€ƒā€ƒ File file = new File(directory,ā€fā€);
6. ā€ƒā€ƒā€ƒ if(!file.exists()) {
7. ā€ƒā€ƒā€ƒā€ƒ file.createNewFile();
8. ā€ƒā€ƒā€ƒ }
9. ā€ƒā€ƒ } catch (IOException e) {
10. ā€ƒā€ƒ e.printStackTrace
11. ā€ƒā€ƒ }
12. ā€ƒ }
13. }

The current directory does NOT contain a directory named ā€œd.ā€
Which three are true? (Choose three.)
Go to Question: