198k views
1 vote
_______exception inherits from exception class and _________exception is anywhere in the program.

Java , C#
C++ , C#
C# , Java
Java ,C++

User Lcsky
by
8.3k points

1 Answer

0 votes

Answer: Java exception inherits from exception class and C++ exception is everywhere in the program.

Explanation: Java exception are the unwanted events that occur during the run time of a particular program and breaks the flow of it. Java exception are the subclass of the exception class that is it is derived from them.So, java exception inherits from exception class.

C++ exception are those circumstances which appear during a program which are unnecessary faults during the execution of a program. the exception allows to transfer the control from one part to another part in a particular program. So, the C++ exception is anywhere in the program.

User Palmer
by
9.0k points