different between exception and error? explaim check and
uncheck exception
Answer Posted / jreader
Exception and Error both classes extends Throwable class.
checked execption is an exception which need to be mentioned
in Throws list so that compiler can understand what type of
exception perticuler method can throw (forexample-
SQLException) whereas unchecked exception compiler will
handle and it comes at run time (for
example-IndexOutofBoundException)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is an arraylist in java?
What are the Main functions of Java?
What is difference between array and arraylist in java?
What is communist flag?
How do you break a loop?
What are use cases?
What is the use of beaninfo?
What is the purpose of the file class in java programming?
What is singletonlist in java?
Can a static member function access member variable of an object?
Can we sort arraylist in java?
What are constructors in java?
How is garbage collection controlled?
What is an accessor?
What is javac used for?