ThePrismSolutions

ThePrismSolutions

Practice(TEST 3)

1 ) In which of the following package Exception class exist?





2 .) Exception generated in try block is caught in ........... block.





3 .) Which keyword is used to explicitly throw an exception?





4 .) Which exception is thrown when divide by zero statement executes?





5 .) Which keyword is used to specify the exception thrown by method?





6 .) Which of the following blocks execute compulsorily whether exception is caught or not.





7 .) What happen in case of multiple catch blocks?





8. Which exception is thrown when an array element is accessed beyond the array size?





9 .) System class is defined in .............





10 .) When comparing java.io.BufferedWriter and java.io.FileWriter, which capability exist as a method in only one of two ?