No java is not a pure object oriented due to its primitive data type and wheni run int with int.class and run then ans is Int which lacks the object oriented phinomenon
Pure OO means it supports 1.Classes and Objects 2.Abstraction 3.Encapsulation 4.Inheritance 5.Polymorphism Java does not support multiple inheritance. But it support Inheritance. Multiple inheritance is the small portion of Inheritance, so it is not considered the main feature for OO programming. Finally, what i say, No doubt Java is pure OO programming language.
Java is not a pure object oriented language because it supports Primitive datatype such as int, byte, long... etc, to be used, which are not objects.
ReplyDelete@Ishan Agrawal : absolutely correct...
DeleteNo java is not a pure object oriented due to its primitive data type and wheni run int with int.class and run then ans is Int which lacks the object oriented phinomenon
ReplyDeletePure OO means it supports
ReplyDelete1.Classes and Objects
2.Abstraction
3.Encapsulation
4.Inheritance
5.Polymorphism
Java does not support multiple inheritance. But it support Inheritance. Multiple inheritance is the small portion of Inheritance, so it is not considered the main feature for OO programming.
Finally, what i say, No doubt Java is pure OO programming language.
Good Amit, Thanks for share concept of Object Oriented programming concepts.
Delete