Java 7 New Feature Writing same logic in every catch block is very tedious job and it also not good for readability of the Java program. In Java SE 7 and later, a single catch block can handle more than one type of exception. This feature can reduce code duplication and lessen the temptation to…