Java MCQ : Java Language Basics (Multiple Choice Questions)


Question 1
jar stands for _____________.
A
Java Archive
B
Java Application Runner
C
Java Archive Runner
D
none of these
Question 2
Which of the following is used to see the details of the compilation.
A
javac -debug TestExample.java
B
javac -detail TestExample.java
C
None of these
D
javac -verbose TestExample.java
Question 3
Which of the following is not a keyword in Java.
A
finalize
B
abstract
C
boolean
D
assert
Question 4
Which of the following is not a keyword in Java.
A
strictfp
B
instanceof
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.