Java has checked and unchecked exceptions. This one is checked exception which means you have to catch it to compile. Otherwise, your point is right and i let it crash to see problems.