1.
Which command compiles a Java program?
2.
Which keyword is used to return a value from a method?
3.
Which command runs a compiled Java program?
4.
Which loop executes at least once?
5.
Which of the following is NOT a Java primitive data type?
6.
Which keyword is used to define a constant in Java?
7.
Java programs are compiled into:
8.
Which keyword is used to define a class in java?
9.
Which keyword is used to create an object?
11.
Which operator is used to compare two values?
12.
What is the correct syntax of the main method ?
13.
Which keyword is used to inherit a class?
14.
Which keyword is used to stop a loop?
15.
Java was first released in which year?
16.
Which symbol is used for single-line comments in Java?
17.
Which of the following is used to print output in Java?
18.
Which operator is used for addition?
19.
Which company originally developed Java?
20.
Which file extension is used for Java source files?