Java MCQ : Java Language Basics (Multiple Choice Questions)


Question 1
jar stands for _____________.
A
Java Archive Runner
B
none of these
C
Java Archive
D
Java Application Runner
Question 2
Which of the following is used to see the details of the compilation.
A
None of these
B
javac -detail TestExample.java
C
javac -debug TestExample.java
D
javac -verbose TestExample.java
Question 3
Which of the following is not a keyword in Java.
A
boolean
B
abstract
C
assert
D
finalize
Question 4
Which of the following is not a keyword in Java.
A
instanceof
B
strictfp
C
transient
D
emun
Question 4 Explanation: 
check out the spelling."enum" is a keyword in Java
Question 5
/*
  /* comment 1 */
  comment 2 */
We can write comment like this in Java Programming.
A
True
B
False
Question 5 Explanation: 
Nesting of multiple line comment is not allowed
There are 5 questions to complete.