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