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.