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

Which of the following is not a Java feature?

  1. Dynamic
  2. Architecture Neutral
  3. Use of pointers
  4. Object-oriented

Answer

c. Use of pointers

Explanation:

The Java language does not support pointers; some of the major reasons are listed below:

  • One of the major factors of not using pointers in Java is security concerns. Due to pointers, most of the users consider C-language very confusing and complex. This is the reason why Green Team (Java Team members) has not introduced pointers in Java.
  • Java provides an effective layer of abstraction to the developers by not using pointers in Java.

Java is dynamic, architecture-neutral, and object-oriented programming language.

Hence, the correct answer is an option (c).


Comments