Why java is not purely object oriented programming language ?
Reason :-
= = = = = =
= = = = = =
1) Everything in Java is not considered as a Object, there are primitive data types available.
Ex : for no.s we are using the int which is not a object type. (only Integer is object type ).
Ex : for no.s we are using the int which is not a object type. (only Integer is object type ).
2) All features of OOP language is not fully supported by Java.
Ex : Multiple Inheritance, Operator Overloading, etc.
Ex : Multiple Inheritance, Operator Overloading, etc.
For a pure object oriented language,there should be 6 features available with it.They are:-
1.Encapsulation/data Hiding
2.Inheritance
3.Polymorphisms/Dynamic Binding
4.All pre-defined types should be Objects
5.All operations performed by sending messages to Objects
6.All user-defined types are Objects
But in java,
features 4 & 5 are lacking.
That'swhy it is not 100%pure OOp.
1.Encapsulation/data Hiding
2.Inheritance
3.Polymorphisms/Dynamic Binding
4.All pre-defined types should be Objects
5.All operations performed by sending messages to Objects
6.All user-defined types are Objects
But in java,
features 4 & 5 are lacking.
That'swhy it is not 100%pure OOp.
Comments
Post a Comment