Section 11.2 Example: Divide by Zero without Exception Handling

• Exceptions are thrown (p. 443) when a method detects a problem and is unable to handle it.

• An exception’s stack trace (p. 444) includes the name of the exception in a message that indicates the problem that occurred and the complete method-call stack at the time the exception occurred.

• The point in the program at which an exception occurs is called the throw point (p. 445).

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.