Ques 1 Syntax
Correct Syntax of Printing "Hello World"?
a) System.out.println("Hello World");
b) system.out.println("Hello World");
c) System.Out.println("Hello World");
d) All of these
Ques 2 Syntax
What is the correct way to declare a constant variable in Java?
a) constant int x = 5;
b) final int x = 5;
c) int constant x = 5;
d) int x = constant 5;
Ques 3 Syntax
What does the static keyword mean in Java?
a) It indicates that a method returns no value.
b) It indicates that a class cannot be inherited.
c) It indicates that a variable is immutable.
d) It indicates that a method can be accessed without creating an instance of the class.