Tuesday, 23 October 2012

Is Java pure Object Oriented programming language ?

5 comments:

  1. 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
  2. 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

    ReplyDelete
  3. 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.

    ReplyDelete
    Replies
    1. Good Amit, Thanks for share concept of Object Oriented programming concepts.

      Delete