What is the difference between the c++ & java?

Answer Posted / devi

c++ java
1) Support Pointers 1) Doesnot support pointers
2) support Multiple Inheritance 2) Indirectly supported
Interface
3) Storage classes 3) static only allowed
4) struct,union,enum 4) Not supported
5) Destructor used 5) Automatically performed
destroy the object using finalize method
6) Operator Overloading 6) Not supported operator
Overloding
7) Preprocessor allowed 7) Not supported

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface? When and where is it used?

1671


When not to use object oriented programming?

576


What is overloading in oop?

581


What is overloading and its types?

630


Why do while loop is used?

586






What is the full form of oops?

624


What are the advantages of polymorphism?

585


Why is destructor used?

589


How does polymorphism work?

646


Prepare me a program for the animation of train

2012


What is data binding in oops?

596


What makes a language oop?

604


What are the three main types of variables?

610


What is property in oops?

575


What is polymorphism and its types?

609