Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

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