What is the difference in between C++ and Java. can u explain in detail

Showing Answers 1 - 1 of 1 Answers

Jagdeep

  • Sep 17th, 2005
 

Features:-===========================================
Topic  Java C++
Pointer No Yes
OperatorOverload No Yes
Preprocessors No Yes
Structures,Unions No Yes
Enums No Yes
Functions No(only methods within classes) Yes
Goto statement No Yes
Automatic Coercions No(types should be converted explicitly) Yes
Global Variables No(variable is a part of a class) Yes
Templates No Yes
Private, Protected, Public Yes Yes
Inheritance No Yes
Default Parameters No Yes
Garbage Collection Yes No
Multi-thread support Yes No
Multiple Inheritance Yes. Supports only interface inheritance and not implementation inheritance! Yes
Exception Handling Yes.try/catch must be defined if the function declares that it may throw an exception. Yes. You may notinclude the try/catch even if the function throws an exception.
Function Overload Yes Yes
Internationalization Yes

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions