Home / MCQ Bank / Computer
Computer Interfaces And Abstract Classes

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 best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • system

Related Computer Questions

If expression. The expression can be of which type? What is the primary goal of a data science capstone project? What is the use of a horizontal Scroll Bar in MS Excel? What will be the output of the following C# code? static void Main(string[] args) { char c = 'g'; string s = c.ToString(); string s1 = "I am a human being" + c; Console.WriteLine(s1); Console.ReadLine(); } How many properties are associated with the Response event?