What is the difference between error and exception and
explain in simple words not whatever is given in the book.

Answer Posted / neha

errors are not expected to be caught.whereas exceptions can
be handled.Ex:system Failure is error whereas
arrayindexoutofbounds is exception.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the symbol for average?

751


How hashmap increases its size in java?

750


Can set contain duplicates?

792


What does n mean?

749


What is a method in programming?

911


What is difference between stringbuffer and string?

761


How do you use spaces in java?

763


Which types of exceptions are caught at compile time?

805


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

738


How does varargs work in java?

876


Which is easier .net or java?

879


What is the difference between equals() and == in java?

744


What are operators and its types?

847


Can Exception handling we can handle multiple catch blocks?

859


Difference between final and effectively final ?

868