what is difference between Exception and Error?

Answer Posted / pranab garai

Error occurs at runtime and cannot be recovered, Outofmemory
is one such example. Exceptions on the other hand are due
conditions which the application encounters such as
FileNotFound exception or IO exceptions

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What advantage do java's layout managers provide over traditional windowing systems?

521


What is the difference between static binding and dynamic binding?

539


What is variable declaration and definition?

518


What data structures are used to perform recursion?

581


What does those terms actually mean included in the j.d.k i.6?

1576






How would you use Bubble Sort to sort the number of elements?

555


What is keyset in java?

628


How do you do math powers in java?

554


What is the purpose of garbage collection in java? When is it used?

515


How do you convert int to char in java?

554


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

584


what are the methods in object?

604


What is hashmap in java?

544


How will you compute size of a structure?

546


Which container method is used to cause a container to be laid out and redisplayed in java programming?

578