Which of the following is a feature of Java?

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

a) Java is platform-dependent
b) Java supports pointers
c) Java is an object-oriented programming language
d) Java does not support multithreading

Answer:

c) Java is an object-oriented programming language

Explanation:

Java is an object-oriented programming language, which means it is based on the concepts of objects and classes. This allows developers to model real-world entities in their programs, making code more modular, reusable, and easier to maintain.

Java is also platform-independent, meaning that Java programs can run on any platform that has the Java Virtual Machine (JVM) installed. Java does not support pointers, as it focuses on security and simplicity, and it fully supports multithreading, allowing for concurrent execution of code.

Understanding Java’s features is crucial for leveraging its strengths in software development.

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