Which of the following is not a feature of the Java programming language?

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

a) Object-oriented
b) Platform-independent
c) Supports pointers
d) Multithreaded

Answer:

c) Supports pointers

Explanation:

Java is an object-oriented, platform-independent, and multithreaded programming language, but it does not support pointers. Pointers are used in languages like C and C++ to directly access memory addresses, but Java omits this feature to avoid complexity and improve security.

By removing pointers, Java reduces the risk of memory-related errors and vulnerabilities, making it safer and easier to use. This is part of Java’s design philosophy to be a robust and secure language for developing applications.

Understanding the features and limitations of Java is important for effectively using the language and avoiding misconceptions or errors in your programs.

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