Question d’entretien chez Morgan Stanley

What is the difference between a Running time exception and a normal exception

Réponses aux questions d'entretien

Utilisateur anonyme

18 mars 2010

Runtime Exceptions are not to be handled within the program. The others which extend Exception class have to be caught using try catch block or declared in the signature of the method using the throws keyword.

Utilisateur anonyme

8 oct. 2010

Runtime exceptions extend Throwable, and are not checked. An example of a runtime exception is NullPointerException, or OutOfMemoryError. An example of a checked exception is something like SQLException