THROWING OUR OWN EXCEPTIONS

No comments

When  we  would  like  to  throw  our  exceptions, then we  can  do  this  using  the  keyword  throw as follows : -

throw  new  Throwable_subclass

Example : -

throw  new  ArithmeticException();
throw  new  NumberFormatException();

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀