Which of the following is not a feature of Java?

Java MCQ: Which of the following is not a feature of Java?

a) Dynamic
b) Platform-independent
c) Machine-dependent
d) Multithreaded

Answer:

c) Machine-dependent

Explanation:

Java is designed to be platform-independent, meaning that Java programs can run on any device or operating system that has the Java Virtual Machine (JVM) installed. This “write once, run anywhere” philosophy is one of the core features of Java.

Java is also a dynamic and multithreaded language, supporting features like dynamic memory management and the ability to handle multiple threads of execution simultaneously.

In contrast, a machine-dependent language is one that is tied to a specific machine or operating system, which Java explicitly avoids to ensure broad compatibility and flexibility.

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top