Exams Knowledge Hub

MCQs for Competitive Exams, School & College Exams

Module: | Core Architecture, Basics & Control Flow

Q1: Consider the following statements regarding Java's genesis and core philosophy:

1. Java was originally initiated under the name 'Greentalk' and later 'Oak' by James Gosling and his team in the early 1990s.
2. The principle of 'Write Once, Run Anywhere' (WORA) is achieved because Java source code is directly compiled into platform-specific machine code.
3. Java was initially designed for small, embedded systems in electronic appliances before becoming a dominant enterprise programming language.

Which of the above statements is/are correct?
A
Only 1 and 2
B
Only 1 and 3
C
Only 2 and 3
D
1, 2, and 3
✅ Correct Answer: B
🎯 Quick Answer:
The correct combination is 1 and 3. Statement 2 is incorrect because Java source code is compiled into platform-independent bytecode, not platform-specific machine code.
Concept Definition: Java is a high-level, object-oriented, and platform-independent programming language designed to have as few implementation dependencies as possible.
Structural Breakdown: The compilation and execution process involves two steps: compiling source code (.java) into bytecode (.class) using the javac compiler, and executing the bytecode via the Java Virtual Machine (JVM). Historical/Related Context: Initiated in June 1991 by James Gosling, Mike Sheridan, and Patrick Naughton (the Green Team) at Sun Microsystems.
It was first called Greentalk, then Oak, and finally renamed to Java in 1995.
The language was primarily aimed at embedded systems like set-top boxes before sweeping the internet programming landscape.
Causal Reasoning: The intermediate bytecode generation is what permits WORA, as the bytecode acts as a universal format that any system with a compatible JVM can interpret, completely decoupling the development environment from the execution hardware.