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 |
1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string.
What is the purpose of file class?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is collection sort in java?
What is formatted output?
How do you write a scanner class in java?
What is the purpose of tostring() method in java?
why to use transient variables when static variables can be used for Serialization
What are the names of Component subclasses that support painting?
Can finally block be used without a catch?
Break statement can be used as labels in java?
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?