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

Is 0 a prime number?

748


What does this mean java?

796


What is hash table in java?

684


When a byte datatype is used?

1266


What is flag in java?

748


What is a memory leak in java?

791


What is the purpose of extern variable?

769


Can we use String with switch case?

871


What is classpath?

766


What is qualitative variable?

742


What is the use of static methods?

805


Can we override constructors?

775


Is .net better than java?

777


Why is logger singleton?

744


What is the difference between an inner class and a sub-class?

727