Home / MCQ Bank / Computer
Computer Miscellaneous In Java

What will be the output of the following Java snippet, if compiled and executed with command line "hello there"? public class abc { String[] xyz; public static void main(String argv[]) { xyz=argv; } public void runMethod() { System.out.println(argv[1]); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • Compile time error

Related Computer Questions

What will be the output of the following Python function if the random module has already been imported? random.randint(3.5,7) What is the output of the following piece of code? a=list((45,)*4) print((45)*4) print(a) Company features in tally includes Accessing elements is achieved through a process called ______ Which of the following string() method are used to compare two strings with each other?