Question 1
Which of the following statements is correct to display Welcome to Java on the console?
◦ System.println('Welcome to Java');
◦ System.out.println('Welcome to Java');
◦ System.out.print("Welcome to Java");
◦ System.out.println("Welcome to Java");
◦ System.out.print('Welcome to Java');
Question 2
The JDK command to compile a class in the file Test.java is ________.
◦ javac Test.java
◦ java Test
◦ javac Test
◦ JAVAC Test.java
◦ java Test.java