Ques 1 File Handling
Which method is used to create a new file in Java?
Ques 2 File Handling
Which class is used to represent a file or directory path in Java?
Ques 3 File Handling
What will be the output of the following Java code snippet?
File file = new File("sample.txt"); System.out.println(file.getName());
Ques 4 File Handling
What will be the output of the following Java code snippet?
File file = new File("sample.txt"); System.out.println(file.isHidden());