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");...


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());


        }


    }


i) java true


ii) java false


iii) \java false


iv) \java true



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here