Java IO Serialization
Ā© examsiri.com
Question : 8 of 17
Marks:
+1,
-0
Given:
The current directory does NOT contain a directory named ād.ā
Which three are true? (Choose three.)
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: