Java History and Basic MCQ
Java History and Basic MCQ
Ans : a
33.Which one of the following is not a Java feature?
a) Object-oriented
b) Use of pointers
c) Portable
d) Dynamic and Extensible
Ans : b
34.What is the original name of Java Programming language?
A) J++
B) C++
C) OAK
D) TEAK
Ans : C
Ans : D
36. What is a Compiler?
A) A Compiler converts all instructions in one go.
B) A compiler converts source code to low-level code
C) Compilers work fast
D) All the above
Ans : D
Ans :D
Ans :A
39.What is JVM ?
A) JVM is the confined memory area
B) All java programs run inside JVM memory
C) JVM provides security to the computer by giving controlled access to Files and
Memory on a computer
D) All the above
Ans :D
40.When was first Version of Java i.e Java 1.0 was released?
A) 1991
B) 1994
C) 1996
D) 1999
Ans :C
Ans : C
Ans : C
Ans : B
Ans : B
45.What is the Java command used to compile a java program from Command Line or
Command Prompt or CMD?
A) >java Hello.java
B) >javac Hello.java
C) >javacomp Hello.java
D) >javacmd Hello.java
Ans : B
46.What is the command used to Run a Java program form Command Line or Command
Prompt or CMD?
A) javac Hello
B) java Hello.class
C) java Hello
D) javac Hello.java
Ans : C
Ans : A
Ans : A
Ans :B
50.which among the following is not a Data Type in Java?
A) short
B) int
C) long double
D) double
Ans: C