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 are the desirable attributes for memory managment?

1946


2. Give the different notations for the class.\

1803


What is overloading and its types?

823


Can we create object of interface?

838


Why oops is important?

785


Why do we use polymorphism?

763


Can main method override?

834


What are the three main types of variables?

830


How oops is better than procedural?

827


What is abstraction and encapsulation?

772


Which type does string inherit from?

832


What is polymorphism used for?

772


How to use CMutex, CSemaphore in VC++ MFC

4537


What is encapsulation example?

764


Why do while loop is used?

770