Handling Errors: An Introduction to Exceptions

Java    |    Beginner
  • 7 videos | 53m 36s
  • Includes Assessment
  • Earns a Badge
Rating 4.4 of 34 users Rating 4.4 of 34 users (34)
Developers need to be aware of the concept of exceptions in the context of Java and how they are implemented in the language so that they can handle it efficiently. Use this course to familiarize yourself with Java exceptions from both a theoretical and practical standpoint. Delve into the two major categories of Java exceptions - checked exceptions that can be identified at the compile stage and unchecked exceptions which occur while the program is running. Next, you'll be able to try your hand at some hands-on programming and discover how to work with compile-time errors and distinguish them from exceptions. After finishing this course, you'll be in a position to recognize the purpose and categories of Java exceptions and how to tackle them.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Identify the different categories of exceptions in java and how to deal with them
    Outline the hierarchy of exception classes in java and recall specific exception types
    Recognize compile errors in java and distinguish these from exceptions
  • Define unchecked exceptions in the context of java and how these can be acknowledged or handled by a developer
    List examples of checked exceptions in java and contrast these with unchecked exceptions
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 9s
    In this video, you’ll learn more about your instructor and this course. In this course, you’ll learn the concept of Java exceptions from both a theoretical and practical standpoint. You’ll look at what an exception is in the context of Java from a conceptual point of view. You’ll then learn how these are implemented in the language. You get some hands-on programming experience and learn about compile-time errors and how they’re different from exceptions. FREE ACCESS
  • 12m 3s
    In this video, you’ll learn more about exceptions in Java. In Java, an exception is an event that occurs sometimes when the program is running and has the effect of disrupting the regular flow of the program. A program may be coded to run in a specific manner, but when an exception occurs, the normal flow is effectively interrupted and an exception is thrown. Here, you’ll look at different categories of exceptions in Java. FREE ACCESS
  • Locked
    3.  The Java Exception Stack
    5m 51s
    In this video, you’ll learn more about some of the more specific mechanics around exceptions and how this can help identify the source of the exception itself. You’ll take a look at a somewhat complex scenario where you have a chain of methods, each one calling another. In this scenario, it may not always be clear where exactly an exception has been thrown. FREE ACCESS
  • Locked
    4.  Identifying Compile Errors in Java
    8m 14s
    In this video, you’ll learn more about working with exceptions in Java. You’ll learn it’s important to draw the line between compile time errors and exceptions that can be caught by the compiler and which must be explicitly handled. You’ll begin by exploring some compile-time errors and move on to exceptions. In these demos, you’ll use the IntelliJ IDE to write code. FREE ACCESS
  • Locked
    5.  Defining Unchecked Exceptions in Java
    11m 39s
    In this video, you’ll learn more about exceptions in Java. Exceptions are issues that can occur during a program's execution, that interrupt its normal flow. Some of these exceptions can be identified by the compiler even before you perform a build of the program. However, there are others that will only occur during runtime, and you can only identify them through experience or by executing the program during the development and testing phases. FREE ACCESS
  • Locked
    6.  Working with Checked Exceptions in Java
    12m 1s
    In this video, you’ll learn more about checked exceptions through a demo. These are exception tags that are detected by the compiler. You won’t be able to build your application without addressing those exceptions first. Onscreen, you’ll see you need to paste in some new code and import the java.io.FileReader class. You’ll then try to read a file that is present on your file system. FREE ACCESS
  • Locked
    7.  Course Summary
    1m 40s
    In this video, you’ll summarize what you’ve learned in this course. In this class, you’ve learned the concept of Java exceptions from a theoretical and practical standpoint. You looked at what an exception is in the context of Java from a conceptual point of view and learned how these are implemented in the language. You gained hands-on programming experience and covered what compile time errors are and how these are different from exceptions. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.4 of 61 users Rating 4.4 of 61 users (61)
Rating 4.4 of 15 users Rating 4.4 of 15 users (15)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 1884 users Rating 4.5 of 1884 users (1884)
Rating 4.5 of 70 users Rating 4.5 of 70 users (70)
Rating 4.3 of 7 users Rating 4.3 of 7 users (7)