what is difference between Exception and Error?

Answer Posted / ganesh

Exception means When a method encounters an abnormal
condition (an exception condition) that it can't handle
itself, it may throw an exception.
Error mens system doesn't handle.For example:Overflow,Out
of memory.

Is This Answer Correct ?    68 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is substring in java?

615


What is difference between checked and unchecked exception in java?

575


Difference between a class and an object?

573


When we should use serialization?

564


What are keywords in java?

573






Explain covariant method overriding in java.

540


Why do we need array in java?

530


What if constructor is protected in java?

556


What is bytecode verifier?

500


Is it possible to override private or static method in java?

541


How do you override a method?

547


What is an eror in java?

557


What is meant by class loader? How many types are there? When will we use them?

505


What does it mean that a class or member is final?

558


What is meant by 'bit masking' in java?

644