Who invented Java programming language?
A
Dennis Ritchie B
James Gosling C
Guido van Rossum D
Bjarne Stroustrup
Analysis & Theory
James Gosling invented Java at Sun Microsystems in 1995.
Which year was Java released?
A
1991 B
1995 C
2000 D
1989
Analysis & Theory
Java was officially released in 1995 by Sun Microsystems.
Which platform is Java primarily designed for?
A
Mobile devices B
Windows only C
Cross-platform D
Unix only
Analysis & Theory
Java is a cross-platform language – 'write once, run anywhere'.
Which of these is a valid Java keyword?
A
function B
define C
new D
var
Analysis & Theory
`new` is a keyword in Java used to create new objects.
What does JVM stand for?
A
Java Verified Machine B
Java Virtual Machine C
Java Variable Model D
Java Visual Module
Analysis & Theory
JVM stands for Java Virtual Machine – it runs Java bytecode.
Which of the following is the correct entry point of a Java program?
A
main() B
start() C
Main() D
public static void main(String[] args)
Analysis & Theory
The Java main method signature must be `public static void main(String[] args)`.
What is the file extension of compiled Java classes?
A
.java B
.class C
.jar D
.exe
Analysis & Theory
After compilation, Java files (.java) become bytecode with `.class` extension.
Which tool compiles Java source code?
A
java B
javac C
javadoc D
jvm
Analysis & Theory
`javac` is the Java compiler.
Which of the following is NOT a feature of Java?
A
Object-Oriented B
Platform-Independent C
Manual Memory Management D
Robust
Analysis & Theory
Java handles memory management automatically using garbage collection.
What is bytecode in Java?
A
Code compiled from Java and understood by JVM B
Machine code C
Source code D
Binary code readable by processor
Analysis & Theory
Bytecode is intermediate code executed by the JVM, not the hardware directly.