Vidyalelo
Java Programming · Q206

Interfaces and Abstract Classes

Programming · Java Programming · question 206

Q206

What will be the output of the following Java program? (Note: file is made in c drive.) import java.io.*; class files public static void main(String args[]) File obj = new File("/java/system"); System.out.print(obj.getParent()); System.out.print(" " + obj.isFile());

A.
java true
B.
java false
C.
\java false
Answer
D.
\java true

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board