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

How to sort array of 0 and 1 in java?

762


What is the difference between choice and list?

870


Can a java program have 2 main methods?

821


What are operators and its types?

847


why Java does not support multiple inheritances?

951


What is meant by nested loop?

819


What things should be kept in mind while creating your own exceptions in java?

879


What is multithreading in java?

819


What is void keyword?

887


How to perform selection sort in java?

819


What is are packages?

807


Why is java not 100% pure oops?

848


What are java packages?

828


What is procedure overloading?

2050


When parseint method can be used?

748