I have create one user-defined class (say ClassA
) which extends Exception
, and another class (ClassB
) which extends RuntimeException
. Please suggest me where I should use them in my application?
Should I use ClassB
(which extend RuntimeException
) in if statement like if the account balance is low?