Header Ads

  • Breaking Now

    Why is Java not 100% pure OOP language?

    Java takes inspirations from C and C++.The native datatypes like 'char','int','float','double' are straight pick from C, which is not an Object Oriented Language.Resonably enough, Java is not a 100% pure Object Oriented Language.

    11 comments:

    1. it also supports the interface mechanism which is against the Object Oriented Principles

      ReplyDelete
    2. Providing the wrapper classes for int,boolean etc mitigates this point of Java not being pre OOPL

      ReplyDelete
    3. Hi Girija,
      can you expand on what you mean when you say interfaces are against Object Oriented principles?
      From my experience most well designed oo systems use interfaces a lot.

      ReplyDelete
    4. by declaring the main method as static also clrifies this point,by declaring as static no need to call the main methos using any object,where java is based on object implementation

      ReplyDelete
    5. java does not support operator overloading that is also one reason why java not 100% pure oop language.

      ReplyDelete
    6. by declaring the main method as static also clrifies this point,by declaring as static no need to call the main methos using any object,where java is based on object implementation

      ReplyDelete
    7. Java is 100% oop because it supports
      1.inheritance.
      2.multithreading.
      3.operatoroverloading.

      ReplyDelete
    8. now java is 100% pure oop language

      ReplyDelete
    9. 1)now java is 100% OOP language.

      2)by declaring main as static does not violate the oops principle. super class or can say the class type objects are used to call the static member from any class.

      3) java do support operator overloading but its not reccomended to do. if we take example of + operator- it is used for addition of two numerics as well as for concatinating two string.

      ReplyDelete
    10. yes .
      java is not 100% pure oop.
      because if u want for loop compulsory u have to depend on datatypes.
      so java is not 100% pure oop

      ReplyDelete

    Post Top Ad

    Post Bottom Ad