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 inheritance and how many types of inheritance?

614


What is polymorphism and why is it important?

556


What are the advantages of polymorphism?

573


What is the difference between encapsulation and polymorphism?

592


what type of question are asked in thoughtworks pair programming round ?

1756






What is the difference between inheritance and polymorphism?

585


What is oops with example?

562


write a programe to calculate the simple intrest and compund intrest using by function overlading

1666


What is interface? When and where is it used?

1664


What is object and class in oops?

586


can inline function declare in private part of class?

3655


What is coupling in oop?

592


Are polymorphisms mutations?

695


What is the significance of classes in oop?

587


What is multilevel inheritance explain with example?

623