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 -detail TestExample.java
B
javac -debug TestExample.java
C
None of these
D
javac -verbose TestExample.java
Question 3
Which of the following is not a keyword in Java.
A
abstract
B
assert
C
boolean
D
finalize
Question 4
Which of the following is not a keyword in Java.
A
strictfp
B
instanceof
C
emun
D
transient
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.