There are two ways to handle exceptions like one is wrapped around the required code in a try block be influenced by a catch block to catch the exceptions and second is the required exceptions in the throws clause of the techniques and let visit the technique can handle those exceptions. It is not the requirement of exception handling that each try block must be influenced by a catch block. It should be influenced by alternative of a catch block or a finally block.
It is not the matters that exceptions are likely to be thrown and must reveal in the throws clause of the technique. The Java programming technique gives two types of exception handling like checked and unchecked. The checked exception handling in declared in java.lang and the exception and all exception classes obtained in java.lang. The Runtime Exception and all exception classes are also obtained in java.lang.
Some programmers prefer to use unchecked exceptions because they want to use only independent variables capture like try, catch, log4j, or declared in the method of distinctive characteristic. However, in general this encourages situations where very low-level error messages are propagated up to high level areas of the code, without additional surrounding conditions information being added at each layer. This means that users are more likely to see the ambiguous and unhelpful messages.