Which one of the following is not a Java feature?

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

a) Object-oriented
b) Use of pointers
c) Portable
d) Dynamic

Answer:

b) Use of pointers

Explanation:

Java does not support the use of pointers, unlike C or C++. Pointers can lead to complex code and security vulnerabilities, which is why Java manages memory through references and automatic garbage collection instead.

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