answersLogoWhite

0

Exception handling is largely the same for both. The only real difference is that C++ has no 'finally' clause which always executes whether an exception occurs or not. Another difference is that Java throws exceptions and errors, but errors cannot be handled since programs cannot handle errors -- such as the JVM out of memory error.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is exception handling in C plus plus?

Exception handling is the means by which exceptions -- anomalous events -- are resolved without causing a runtime error.


Which compiler is used for writing c plus plus exception handling programs?

C++ compiler, obviously, a C compiler won't do.


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the Merits and demerits of exception handling in c plus plus?

Are mala cha pahije disadvantages.. ani tumhi mala vichartat.. ask to scientist....


Which is more popular c plus plus or java?

Java


Which is easier 'C plus plus' or 'Java'?

Java is considerably easier than C++.


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


How java use extern key word which is used in C plus plus?

No extern keyword in Java.


What language is completely object oriented c plus plus or java?

Java is the complete object oriented Programming Language as every thing in java is an object,


Why is java's portability better than c plus plus?

As we know that java is a plateform independent language and the main advantage of java is that it can support to any operating system and can be executed to any machines without any modifications.Due to the use of class in java it has become more easier to understand the program compared to c plus plus.Hence,java is portable than c plus plus


Can you overload plus equals in java?

yes to over load plus in java by using arthamatic operation we can perform it


Difference between java and C plus plus?

java is an advanced object oriented programming language than c++