+ 2
Java programming
Difference between Error and Exception in Java?
1 Answer
0
Error happens due to lack of resouses, so you can't handle it by program.. Where as exception can happen because of programing mistake you can handle this by your program.
Ex:
Error : no connection, wire is broken
Exception : accessing out of range.
Edit:
For more info, see..
https://techdifferences.com/difference-between-error-and-exception.html#:~:text=âThrowableâ%20act%20as%20the%20root,the%20code%20of%20the%20program.&text=The%20significant%20difference%20between%20error,caused%20because%20of%20your%20code.
https://javaconceptoftheday.com/difference-between-error-vs-exception-in-java/