Home / MCQ Bank / Computer
Computer Interfaces And Abstract Classes Difficulty: Medium

What will be the output of the following Java code? import java.io.*; class files { public static void main(String args[]) { File obj = new File("/java/system"); System.out.print(obj.getName()); } }

Select the correct option to test your answer:

More Computer Questions

Which of the following will copy the plot from one device to another? What is the result of the following code snippet? abstract class MyAbstract { MyAbstract() { System.out.println("Constructor"); } } class MyClass extends MyAbstract { public static void main(String[] args) { MyClass obj = new MyClass(); } } Why is "communication" considered a critical skill in a data science capstone project? In a Binary Search Tree (BST), what does the term "node height" refer to? What is the output of the above program? class Num { Num(double x ){ System.out.println( x ) ; } } public class Test extends Num { public static void main(String[] args){ Num num = new Num( 2 ) ; } }