What will be the output of the following Java code? [code] import java.io.*; class files { public static void main(String

What will be the output of the following Java code?
Code:
    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
 

Tìm kiếm

Back
Top