oop
Title
Question
Is Java is a pure OOP Language or not ? if yes why?
Java Creating-class 00-01 min 0-10 sec
Answers:
Java is purely object oriented language because it has all the qualities of an object oriented language.
Java supports inheritance, encapsulation, polymorphism and abstraction.
In java, objects are created to perform operations.
All types are object in java <span style="font-weight: bold;">except</span> the primitive datatypes like int, float, char, boolean, double, short and long.
But then, we have <span style="font-weight: bold;">wrapper classes</span>(Integer, Float, Double, Boolean, etc.)
So, instead of primitive types we can use these classes.
Therefore, java has all the qualities of an object oriented language.
Java supports inheritance, encapsulation, polymorphism and abstraction.
In java, objects are created to perform operations.
All types are object in java <span style="font-weight: bold;">except</span> the primitive datatypes like int, float, char, boolean, double, short and long.
But then, we have <span style="font-weight: bold;">wrapper classes</span>(Integer, Float, Double, Boolean, etc.)
So, instead of primitive types we can use these classes.
Therefore, java has all the qualities of an object oriented language.
Yes because,we can run C++ programs without class(oops concepts). But for java we can use class or any other oops concepts compulsory.That is why we call its Pure OOPS.
Java is not pure Object-oriented Language, because Java uses primitive data types like byte, short, int, long, float, double char and boolean, which are not objects.
Java is not considered as pure OOP language because several OOP features are not satisfied by Java. Operator overloading, Multiple Inheritance etc. Moreover, we are depending on primitive data types, which are non objects.<o:p></o:p>
java is partially object oriented programming language
because it supports primitive data type
Login to add comment