Java Certified Foundations Associate: Java Debugging & Exceptions

Java    |    Beginner
  • 14 videos | 1h 7m 57s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 67 users Rating 4.7 of 67 users (67)
Sometimes the unexpected happens in your Java code and you will need to figure out what broke and how to fix it. In this course, you will learn how to handle exceptions and how to debug your Java code. First, you will learn how to debug your code using the Java JDB tool as well as using IntelliJ. Next, you will learn the best practice for debugging Java code and some common syntax and logic errors that you may encounter and methods for fixing these errors. Finally, you will learn how to handle exceptions in your code using the try catch block statements. This course is one of a collection of courses that prepares learners for Oracle's 1Z0-811: Java Certified Foundations Associate certification.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Describe how to debug code using the java jdb tool
    Debug code using the java jdb tool
    Describe how to debug code using intellij
    Debug code using intellij
    Describe some of the best practices when debugging code in java
    Describe some of the common syntax and logic errors that are made in java code
  • Describe exception handling and how it relates to java
    Handle exceptions in java
    Describe some of the common exceptions in java
    Demonstrate some of the common exceptions in java
    Describe how to use try catch blocks within java
    Use try catch blocks within java
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 31s
    In this video, you’ll learn more about the instructor and the course. You’ll learn how to handle exceptions and debug your Java code. First, you'll debug code using the Java JDB tool, as well as using IntelliJ. Next, you’ll learn best practices for debugging Java code and some common syntax and logic errors you may encounter. You’ll learn methods for fixing these errors and you’ll explore how to handle code exceptions using Try-catch block statements. FREE ACCESS
  • 5m 44s
    In this video, you’ll learn more about debugging code using the Java JDB tool. You’ll start with the Java Platform Debugger Architecture, the JPDA. This allows for the implementation of debugging tools for Java remotely, in a cross-platform. It provides a reference implementation and a modular architecture for debugging Java. The JDI, or Java Debug Interface, is implemented so that debugger clients, IDEs, tracers, and monitoring tools can connect to the debugger architecture. FREE ACCESS
  • Locked
    3.  Debugging Using the Java JDB Tool
    7m 11s
    In this video, you’ll watch a demo. In this demo, you’ll learn how to debug code using the Java JDB Tool. From a terminal window you’ll use the terminal client built into IntelliJ. You can run the JDB command as seen onscreen. You’ll run IntelliJ from the terminal window, but you can do this from any shell client or terminal window. FREE ACCESS
  • Locked
    4.  Java Debugging with IntelliJ
    4m 14s
    In this video, you’ll watch a demo. You’ll learn how to debug code using IntelliJ. You’ll launch a program with the debugger attached with IntelliJ's internal debugger. This interfaces with the program and provides information about what's going on. You can put in breakpoints and perform the functions you would when running JDB from the command line, right inside your IDE. This facilitates the detection of problems, and it makes fixing bugs easier. FREE ACCESS
  • Locked
    5.  Debugging Code Using IntelliJ
    5m 4s
    In this video, you’ll watch a demo. You’ll learn how to use IntelliJ's Java debugging tools. You'll start in the project onscreen, called DebugDemo. Inside of Main.java, you’ll begin with the line package com.example, and add it to this particular package. On line 3, you’ll declare a public class Main. Then inside of this class, there are a couple of methods. One is the Main method, and another one is called handleString. FREE ACCESS
  • Locked
    6.  Java Debugging Best Practices
    4m 55s
    In this video, you’ll learn best practices for debugging code in Java. First, you’ll learn about Java breakpoints. You’ll learn you can set conditional breakpoints based on conditional if statements inside of if then else blocks. Exception breakpoints are ones that occur when an exception is thrown. Watch points are based on the value of a variable. You’ll learn the Eclipse IDE or IntelliJ enables you to choose any frame. FREE ACCESS
  • Locked
    7.  Java Syntax and Logic Errors
    3m 26s
    In this video, you’ll learn some of the common syntax and logic errors made in Java code. Errors in Java fall into two main categories. Syntax errors occur when the language is used incorrectly. Compiler will catch most syntax errors. However, it doesn’t cover mistakes in the logic of the program itself. Logic errors occur where the code isn't performing as expected. FREE ACCESS
  • Locked
    8.  Java Exception Handling
    5m 13s
    In this video, you’ll learn some of the important aspects of Java's exception handling. This is one of the most overlooked and underestimated features. Exception handling gives you the ability to alter the flow of code in a structured way so the logic is easy to follow. The content of the exception is obvious and the handlers are defined in a consistent way. FREE ACCESS
  • Locked
    9.  Demonstrating Java Exception Handling
    7m 7s
    In this video, you’ll watch a demo. You’ll learn how to handle exceptions in Java, focusing on two different types, the checked exception and the unchecked exception. In the Main.java file, you’ll see this class in the package com.example. You’ll import java.io.FileInputStream. You’ll open a file and see what happens if the file can't be found. You’ll find you need to import java.io.FileNotFoundException. This is part of a checked exception. FREE ACCESS
  • Locked
    10.  Common Java Exceptions
    6m 17s
    In this video, you’ll watch a demo. You’ll learn some of the more common exceptions in Java. You’ll learn Java has two main categories of exceptions. Checked exceptions are ones that must be caught, otherwise, your program won't compile. Most IDEs like IntelliJ will flag checked exceptions as they’re written. Unchecked exceptions are ones that don't need to be handled, but areas where things can be thrown. Unchecked exceptions are exceptions programs don’t recover from. FREE ACCESS
  • Locked
    11.  Demonstrating Common Java Exceptions
    6m 49s
    In this video, you’ll watch a demo. You’ll learn some common exceptions in Java through the example code onscreen, open in IntelliJ. In Main.java, you’ll start by including it in the package com.example. And then on line 3, you’ll import java.text.ParseException; then import java.text.SimpleDateFormat. You’ll try and parse a date from a string and stored in a date object. But if we can't parse that string, a parse exception will be thrown. FREE ACCESS
  • Locked
    12.  Java Try Catch Blocks
    5m 10s
    In this video, you’ll watch a demo. You’ll learn how Try Catch Blocks are used in Java. You’ll learn the finally statement. You’ll learn Java exceptions are a way of handling and passing error information. It’s a way of dealing with exceptional events. You’ll discover the syntax in Java is driven by the try and catch blocks. Onscreen, there's a try keyword and a catch keyword. And those blocks are surrounded with braces. FREE ACCESS
  • Locked
    13.  Demonstrating Java Try Catch Blocks
    4m 35s
    In this video, you’ll watch a demo. You’ll see a full example of a Java Try Catch Block, including a finally block. You’ll start in this Main.java by including this in the package com.example. You’ll import the classes needed for this example. In line 3, you have import java.io.FileWriter, because you're going to write to a file, import java.io.IOException. You’ll see the FileWriter has a problem and it will throw an io exception. FREE ACCESS
  • Locked
    14.  Course Summary
    43s
    In this video, you’ll summarize what you’ve learned in the course. You’ve learned how to handle exceptions and how to debug your Java code. You explored how to debug code using the Java JDB tool and IntelliJ. You also learned best practices when debugging Java code. You discovered common syntax and logic errors as well as programming Java exception handling. 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.5 of 526 users Rating 4.5 of 526 users (526)
Rating 4.6 of 37 users Rating 4.6 of 37 users (37)
Rating 4.6 of 36 users Rating 4.6 of 36 users (36)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 33 users Rating 4.5 of 33 users (33)
Rating 4.6 of 490 users Rating 4.6 of 490 users (490)
Rating 4.7 of 64 users Rating 4.7 of 64 users (64)