You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/exceptions/introduction.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,8 @@ Current balance: 5.0
131
131
Java also has a separate category called _Errors_ which are serious problems that are external to an application.
132
132
An example of an error is the `OutOfMemoryError` which occurs when an application is trying to use more memory than is available on the system.
133
133
134
-
Like unchecked exceptions, errors are not checked at compile-time and are not usually thrown from application code.
135
-
Unlike exceptions, Errors represent serious system-level problems that applications should generally not attempt to catch or handle.
134
+
Like unchecked exceptions, errors are not checked at compile-time.
135
+
The difference is that they represent system level problems and are generally thrown by the Java Virtual machine or environment instead of the application.
136
+
Applications should generally not attempt to catch or handle them.
136
137
137
138
All errors in Java inherit from the `Error` class.
0 commit comments