Java SE 11: Exception Handling

Java SE 11
  • 13 Videos | 1h 4m 20s
  • Includes Assessment
  • Earns a Badge
Likes 106 Likes 106
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 program
    describe the conditions that lead to a Throwable class of type Error
    describe the conditions that lead to a Throwable class of type RuntimeException using a use operator assignment to abbreviate common operations
    recognize uncaught exceptions and identify the error in the call stack
    use a try catch block to handle exception
    deal with NetBeans flags that indicate exception handling errors
    catch 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 methods
    handle exceptions thrown by methods
    identify bad exception handling and modify code to help clarify the source of the exception
    handle uncaught exceptions higher in the call stack
    use the finally block to always execute when a try block exists even if an unexpected exception occurs
    throw an exception from a method that is caught in a try/catch block by its caller

IN THIS COURSE

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.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 94 Likes 94  
Likes 142 Likes 142