Why we don't have to add try-catch to a RuntimeException ?
- by M.H
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();
}
}