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 |
What is an Exception ?
Difference between association, composition and aggregation?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is the Concept of Encapsulation in OOPS
Variables used in a switch statement can be used with which datatypes?
Is heap stored in ram?
Why is it important to initialize a variable?
What will be the initial value of an object reference which is defined as an instance variable?
Why is inheritance used in java?
what is the diffrence between class and object?
Is null an object java?
What is Runtime class and its purpose?