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

Answer Posted / srinu

Error:-
Errors are occuried at compile time.These errors are araise
pure understanding the language. i.e small syantax
errors.its give an error at complite time.

Exception:-
It is unwanted ,unexpected event which distrubs the normal
folow of the program.its araise an at Runtime.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

670


Explain reverse a linked list iterative solution in java?

587


What are different type of exceptions in java?

632


Is java same as core java?

671


What does a method signature consist of?

603






What is thread pool in java with example?

636


What is numeric data type?

621


What is lazy programming?

661


What are abstract classes and anonymous classes?

725


Can inner class be public in java?

643


Is empty string in java?

701


What is difference between string and stringbuffer?

589


Does constructor return any value?

668


What is string variable?

656


How to retrieve data from database in java using arraylist?

627