Why we don't have to add try-catch to a RuntimeException ?

Posted by M.H on Stack Overflow See other posts from Stack Overflow or by M.H
Published on 2010-05-01T16:13:58Z Indexed on 2010/05/01 16:17 UTC
Read the original article Hit count: 204

Filed under:
|

Hi,I want to ask why we don't have to add try-catch block to a RuntimeException while we should do that with other exceptions ?I mean like :

public class Main {
    public static void main(String[] args) {
       throw new RuntimeException();
    }
}

© Stack Overflow or respective owner

Related posts about java

Related posts about exceptions