when to make a class a subclass of Exception and when to make it a subclass of RuntimeException? Generally, this depends on the circumstances and the nature of the exception. If you consider NullPointerException, you know that this exception always indicates a programming error. However, with IllegalAccessException, the case is less clear. In some circumstances, such as during authorization con...
villim (I think, therefore I am)
2017-09-07 01:11:37