Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
Java School Programming Java-Exceptions

Exceptions in Java

What is an Exception? An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow ...

Catching base and derived classes as exceptions

Exception Handling – catching base and derived classes as exceptions: If both base and derived classes are caught as exceptions then catch block of derived cla...
Java Java-Exceptions Java

Checked vs Unchecked Exceptions in Java

In Java, there are two types of exceptions: 1) Checked: are the exceptions that are checked at compile time. If some code within a method throws a checked exception, ...
Java Java-Exceptions Java

Chained Exceptions in Java

Chained Exceptions allows to relate one exception with another exception, i.e one exception describes cause of another exception. For example, consider a situation in...
Python School Programming

User-defined Exceptions in Python with Examples

Prerequisite- This article is an extension to Exception Handling. Python throws errors and exceptions, when there is a code gone wrong, which may cause program to sto...
Python Python-Library

Built-in Exceptions in Python

All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are not related via subclassing are never equivalent,...

Subscribe to Our Newsletter