Java Exceptions Question Answers
Java Exceptions - Question & Answers for Beginners Goto Lesson Some useful bits on java Exception to revise your subject that you learned in the class lesson. If not yet, please click the above top right link to go to lesson. What is Exception ? Exception is nothing but a runtime error. Handling exception is called as Exception Handling. How many types of errors in programming. 1. Syntactical errors (Grammatical errors) occurs at compile time. 2. Semantic errors (Logical errors) occurs at runtime. What is the mechanism for handling exceptions in Java? --Exception handling in Java is achieved through try, catch, and finally blocks. What is the parent class of Exception. --Throwable In java, All classes are by default extended by which class. -- Object How many types of keyword java uses to handle exceptions, What are they? Java provided 5 keywords to handle exceptions. 1. try 2. catch 3. finally 4. throw 5. throws Divide by zero throws whic