different between exception and error? explaim check and
uncheck exception
Answers were Sorted based on User's Feedback
Answer / malligontla
Exception is caused due to programmer mistake where as error
is because of the jvm failure. Checked exception user should
handle the exception to ensure the smooth flow of the
program without any break IOException, unchecked exception
is the user might or might not handle the exception example
is Arithmetic exception
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Answer / nitin jain
Checked exceptions check at the time of compile the program
where unchecked exception check at runtime.
| Is This Answer Correct ? | 3 Yes | 0 No |
Why java is call by value?
Highest level event class of the event-delegation model?
How many bytes is 255 characters?
What is class forname used for?
What is the difference between the boolean & operator and the && operator in java programming?
How thread scheduler schedule the task?
How does Vector implement synchronization?
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?
Is java developer a good career?
How to Sort list of Strings in ascending order without using java api.
What is an off by one error in java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?