what is difference between Exception and Error?

Answer Posted / suresh.g

Exception is handled at the run time.
Eg:- divide by zero.
Error is some thing is wrong in program.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is list thread safe in java?

476


How to do a true java ping from windows?

604


What are the differences between heap and stack memory?

535


Write a program to find the whether a number is an Armstrong number or not?

559


Explain about field hiding in java?

513






State the significance of public, private, protected class?

635


Explain the concept of proper inheritance?

597


How can we make sure main() is the last thread to finish in java program?

650


Can we declare main () method as non static?

508


What are identifiers in java?

560


What is the instance of an object?

536


what are different ways in which a thread can enter the waiting state? : Java thread

478


What is stack explain?

488


What is meant by class loader? How many types are there?

662


enlist some features of jdk.

549