1. #1
    Unregistered

    What is the difference between C and Java? Why Java is called purely object oriented why not C, even it also follows the concept of Inheritance, Polymorphism & Encapsulation etc?

    java and c both follow concept of inheritence,polymorphism,encaptulation etc then why java called pure object oriented ,c not





  2. Related:
  3. #2
    Mr.HB
    Join Date
    Dec 2012
    Posts
    14

    Re: What is the difference between C and Java? Why Java is called purely object oriented why not C, even it also follows the concept of Inheritance, Polymorphism & Encapsulation etc?

    Main defferences are :-

    1. Java does not support operator overloading

    2. A class definition in Java looks similar to a class definition in C++, but there is no closing semicolon.

    3. Forward reference declarations are not required in Java.

    4. Scope resolution operator (: required in C++ is but not in Java.

    5. In C++ you have to re-declare static data members outside the class but such things are not required in Java




+ Reply to Thread

Quick Reply Any Question?