Answer Posted / ritesh srivastav
1 exception is a condition that has been occur in piece of code. that can be handle by programmer.
whereas error is occur at runtime of program.that can not be handle by programmer.
2 eg. of exception is no divide by zero
whereas eg. of error is stack over flow.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the base class in java from which all classes are derived?
How garbage collection is done in java?
What are the different http methods?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Explain restrictions for using anonymous inner classes?
What are advantages of using Java?s layout managers than windowing systems?
Which non-unicode letter characters may be used as the first character of an identifier?
Can we override the private methods?
What is a for loop in java?
What is the use of parseint in java?
What is the maximum size of list in java?
Can a static block throw exception?
How do I stop concurrentmodificationexception?
What technique is carried out to find out if a particular string is empty?
Can we sort a map in java?