+ 2

Java programming

Difference between Error and Exception in Java?

31st Aug 2020, 10:51 AM
Sivanji Singh
Sivanji Singh - avatar
1 Odpowiedź
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/
31st Aug 2020, 12:53 PM
Jayakrishna 🇮🇳