NET Centric Computing2081.110 marksNumerical: exception handling programThrowing and catching exceptions
Differentiate between error and exception. Write a program to take the input for any five subjects and throw the exception if the given marks is negative or exceed 100.
Differentiate between error and exception. Write a program to take the input for any five subjects and throw the exception if the given marks is negative or exceed 100.[10]
In everyday use an error is any fault in a program, but as a technical term the two words describe faults of very different severity, and the .NET framework treats them differently from Java. In .NET there is no separate Error base class. Everything that can be thrown derives from System.Exceptio...