Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is an exception in Java?
Answer: An exception is an event that disrupts the normal flow of the program's instructions during runtime.

Example:

int result = 10 / 0; // This will throw an ArithmeticException
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook