
Learn what are exceptions and how they affect your program
Learn how to use the basic of try-catch block
It is important to differentiate the checked and runtime exceptions in Java
Distinguish when to use the throws and throw keywords
Discover what and why of using the finally block
Learn how to locate exception code with printing stack trace
Improve your exception handling code with new features in Java 7+
Learn how to write your own exception classes
Learn how to use the assert keyword for testing purpose in your program
Learn how to use basic java logging API
Learn how to use log with different handlers: console, files,..
Learn how to create your own custom formatters
Learn how to change the default settings for logging in JDK
One of the fundamental skills in Java language as well as in other programming langues is to master how to handle errors in applications.
Java provides a powerful and flexible way to help you in controlling your programs in a stable mode even in cases runtime exceptions occur.
Handling errors in Java applications involves Exception Handling, Assertion, and Logging.
Exceptions handling may sound simple but if you don't know fundamental concepts and techniques clearly, you may or may have been using it in the wrong way.
In the Exception Handling section, I will walk you through all the core concepts and vital techniques, including:
You will also learning how to use the assert keyword and enable/disable it in your code.
Along with Exception Handling and Assertion, you will also learn how to record information which might generate during the program execution with the Java Logging API.
In this section, I will show you how to:
The course includes all the sample source code for each lecture.
Hope you enjoy the course, and do not hesitate to ask questions in the discussion section if you have any.