Java not purely object-oriented despite strong OOPS principles

This was a question I was recently asked in an interview: 👉 Is Java a purely object-oriented language? At first glance, many people say “Yes” because Java strongly follows core OOPS principles: • Encapsulation • Inheritance • Polymorphism • Abstraction However, the correct answer is: Java is not a purely object-oriented language. Here’s why: • Java supports primitive data types like int, double, char, and boolean, which are not objects. • We can define and use static methods and variables without creating objects. In a purely object-oriented language, everything must be treated as an object. Java is strongly object-oriented, but not purely object-oriented. Conceptual questions like this often test clarity of fundamentals more than coding ability. #Java #OOPS #InterviewPreparation #SoftwareEngineering #BackendDevelopment

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories