Tuesday 1 November 2011

Difference between c++ and Java?


                             Java
                            C++
1)There are no pointers in java
1)There are pointers
2)There is no  operator overloading in Java
2)There is operator overloading in C++
3)There are no  processor directives
3)There are preprocessor directives
4)There are no Structures and Unions
4)There are Structures and Unions
5)There is no go to statement
5)There is go to statement in C++
6)There are no global variables
6)There are global variables
7)There are no templates
7)There are templates
8)There is garbage collection
8)There is no garbage collection
9)Java does not support multiple inheritance
9)C++ supports multiple inheritance



2 comments:

  1. plz check c++ and java diffrences there is some mistakes at 2nd & 5th diffrences read carefully...

    ReplyDelete
  2. actually Java does support multiple inheritance but only in case of interfaces

    ReplyDelete