Which of the following is not an OOPS concept in Java?

Java MCQ: Which of the following is not an OOPS concept in Java?

a) Inheritance
b) Encapsulation
c) Polymorphism
d) Compilation

Answer:

d) Compilation

Explanation:

Compilation is not an object-oriented programming (OOP) concept. The main OOP concepts in Java are Inheritance, Encapsulation, Polymorphism, and Abstraction.

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