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 garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
Is java an open source?
Can keyword be used as identifier?
Write a program to check for a prime number in java?
What are the procedures?
What is formatted output?
What is the difference between compiler and jvm?
What if I write static public void instead of public static void in java?
How do you make a thread in java?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
Is 0 a prime number?
What modifiers may be used with an inner class that is a member of an outer class in java programming?