Create a custom exception in which maks of the student is less than 60
Answers
Answered by
8
In java we have already defined, exception classes such as ArithmeticException, NullPointerException etc. These exceptions are already set to trigger on pre-defined conditions such as when you divide a number by zero it triggers ArithmeticException, In the last tutorial we learnt how to throw these exceptions explicitly based on your conditions usin
Answered by
7
In java, we can define our own exception classes as per our requirements. These exceptions are called user defined exceptions in java OR Customized ...
Similar questions