Java exception Notes

Precautions:

  A, the subclass overrides the superclass method, a subclass exception thrown exception must be the same as the parent class or subclass abnormalities.

  B, subclass the parent class can not throw no exceptions.

  C, was rewritten method does not throw an exception, then the subclass method can not throw an exception. Subclass own use try catch an exception processing.

Guess you like

Origin www.cnblogs.com/cincing/p/11619983.html