Introduction to Exceptions

Introduction to Exceptions

In this course, we'll learn about Exception Handling in Java.

Learning Objectives

  • What is an Exception?
  • Difference between Error and Exception
  • Types of Exceptions
  • Try-Catch Block
  • Finally Block
  • Throw and Throws Keywords
  • Exception Methods

Intended Audience

  • Anyone looking to get Oracle Java Certification
  • Those who want to learn the Java Programming language from scratch
  • Java developers who want to increase their knowledge
  • Beginners with no previous coding experience in Java programming
  • Those who want to learn tips and tricks in Oracle Certified Associate – Java SE 8 Programmer certification exams


  • No prior knowledge is required about the Java programming language
  • Basic computer knowledge

Hi there. In this video, we'll talk about the Exception. So, what is the Exception? An Exception is a special type of error. It's used during the execution of a program, i.e., at runtime, that disrupts the normal flow of the program's instructions. Abnormal conditions that occur while executing the program cause Exceptions. While writing the program, these conditions are not known. If you don't consider these conditions, the execution can be terminated abruptly. For example, division by zero will cause an error in a program. The Java language provides excellent Exception-handling mechanisms. 

These mechanisms minimize the chances of a system crash or abrupt program termination. For this reason, Java is known as a robust language. Okay, I think it's clear now what the Exception is. Often, error and exception are confused with each other, but in Java they are different things. So, let's take a short break here. In our next lesson, we'll talk about the difference between Error and Exception. See you in the next lesson.


About the Author
Learning Paths

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics