Java SE 11: Exception Handling
Java SE 11
| Beginner
- 13 Videos | 58m 20s
- Includes Assessment
- Earns a Badge
During this course, you will explore the use of try/catch blocks for exception handling in Java, including the different types of throwable classes and some best practices examples. You will begin with learning about what conditions a Throwable class of type Error and RuntimeExceptions. Next, learn how to recognize uncaught exceptions and identify errors in the call stack. From there you will move on to how to manage NetBeans flags to handle errors, and catch multiple exceptions that can be thrown from a block of code. Other topics include the following: how to determine which exceptions are thrown, based on an object's constructors, methods, or API documentation; how to employ a Checked Exception; how to handle exceptions thrown by methods; rectify bad exception handling; propagate Exceptions; handle uncaught exceptions that are higher in the call stack. Finally, you will learn how to execute the finally block, when a try block exists.
WHAT YOU WILL LEARN
-
describe how Java handles unexpected events in a programdescribe the conditions that lead to a Throwable class of type Errordescribe the conditions that lead to a Throwable class of type RuntimeException using a use operator assignment to abbreviate common operationsrecognize uncaught exceptions and identify the error in the call stackuse a try catch block to handle exceptiondeal with NetBeans flags that indicate exception handling errorscatch multiple exceptions that can be thrown from a block of code
-
explore the Java API documentation to determine what exceptions are thrown by an object's constructors or methodshandle exceptions thrown by methodsidentify bad exception handling and modify code to help clarify the source of the exceptionhandle uncaught exceptions higher in the call stackuse the finally block to always execute when a try block exists even if an unexpected exception occursthrow an exception from a method that is caught in a try/catch block by its caller
IN THIS COURSE
-
1.Handling Unexpected Events3m 53s
-
2.Throwable Classes: Error3m 14s
-
3.Throwable Classes: RuntimeException3m 16s
-
4.Uncaught Exceptions and the Call Stack2m 45s
-
5.Using try/catch to Handle Exceptions6m 53s
-
6.Explicit Exceptions in NetBeans4m 17s
-
7.Catching Multiple Exceptions7m 41s
-
8.Exception in the Java API Documentation3m 6s
-
9.Working with a Checked Exception4m 43s
-
10.Exceptions Best Practices4m 53s
-
11.Propagating Exceptions6m 10s
-
12.Using Finally5m 25s
-
13.Exercise: Catching Exceptions2m 3s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.