Input Output

1

What is the output of this program?

 import java.io.*;
class files {
public static void main(String args[]) {
File obj = new File("/java/system");
System.out.print(obj.getName());
}
}

A. java
B. system
C. java/system
D. /java/system

2

Which of these is method for testing whether the specified element is a file or a directory?

A. IsFile()
B. isFile()
C. Isfile()
D. isfile()

3

Which of these is specified by a File object?

A. a file in disk
B. directory path
C. directory in disk
D. None of the mentioned

4

Which of these class is not related to input and output stream in terms of functioning?

A. File
B. Writer
C. InputStream