Java Exceptions Handling, Assertion, Java Logging API
3.8 (19 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,148 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Java Exceptions Handling, Assertion, Java Logging API to your Wishlist.

Add to Wishlist

Java Exceptions Handling, Assertion, Java Logging API

A fundamental guide on Java Exceptions Handling - Assertion - Java Logging API
3.8 (19 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,148 students enrolled
Created by Sera Nguyen
Last updated 3/2015
English
Current price: $10 Original price: $30 Discount: 67% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 1 hour on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Handle errors in Java applications with try-catch technique
  • Apply different handling exception techniques
  • Utilize exception handling techniques in finding errors in Java applications
  • Write custom exception classes for handling errors
  • Apply assertion technique in testing code
  • Apply Java Logging API for recording application information effectively
  • Master logging levels and handlers
  • Create custom handlers
  • Apply changes in default logging settings
View Curriculum
Requirements
  • Students need to have a basic Java skills
  • Students need to know how to implement OOP concepts, not necessarily in advance, just basic skills
  • All the source code projects are created in Netbeans 8 running on JDK 8
Description

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:

  • Basic usage of try-catch block
  • Exception types
  • When to use throws and throw keywords
  • The finally block
  • Locating exceptions code
  • New features in Java 7: catching multiple exceptions, try-with-resource
  • Make your own exception classes.
  • And more coming.

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:

  • Record information with different levels and Handlers
  • Create your own custom handler with custom format: text, HTML
  • Change the default settings for logging in JDK.

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.

Who is the target audience?
  • Students who want to learn how to handle errors in Java applications
  • Students who want to have a big picture of Java Exception Handling
  • Students who take Java example where exception handling is involved
  • Students who want to learning how to log information in Java application
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 14 Lectures Collapse All 14 Lectures 48:19
+
Exception Handling Fundamentals
9 Lectures 27:38

Learn what are exceptions and how they affect your program

Preview 02:15

Learn how to use the basic of try-catch block

Preview 04:05

It is important to differentiate the checked and runtime exceptions in Java

Preview 02:46

Distinguish when to use the throws and throw keywords

Preview 03:23

Discover what and why of using the finally block

The finally Block
01:57

Learn how to locate exception code with printing stack trace

Exception Propagation
02:07

Improve your exception handling code with new features in Java 7+

New in Java 7: Catching Multiple Exceptions, try-with-resources Statement
03:11

Learn how to write your own exception classes

Write Your Own Exception Classes
03:36

Learn how to use the assert keyword for testing purpose in your program

Assertion
04:18
+
Java Logging API
4 Lectures 19:52

Learn how to use basic java logging API

Logging Basics
04:37

Learn how to use log with different handlers: console, files,..

Log Handlers
03:50

Learn how to create your own custom formatters

Log File Formatter – Custom Formatter
06:12

Learn how to change the default settings for logging in JDK

Changing Log Default Settings
05:13
+
Appendix
1 Lecture 00:49
What's to learn next? and Discount
00:49
About the Instructor
Sera Nguyen
3.6 Average rating
50 Reviews
1,603 Students
7 Courses
Developer, Architect, Professor

Hi, my is Sera Nguyen and I have a big interest in Software Programming. After completing my Computer Science degree, I was employed as Embedded Software Engineer at Renesas Corporation, then Software Architect at CSC Corporation. After more than 6 years in the Software Industry and completing my Master degree, I became a full time University Professor specializing in Software Engineering Faculty. Currently, I am still working full time as Professor and contracting trainer for software companies and doing research for my PhD degree in software architecture design field.