Java Certified Foundations Associate: Java Debugging & Exceptions
Java
| Beginner
- 14 videos | 1h 7m 57s
- Includes Assessment
- Earns a Badge
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 courseDescribe how to debug code using the java jdb toolDebug code using the java jdb toolDescribe how to debug code using intellijDebug code using intellijDescribe some of the best practices when debugging code in javaDescribe some of the common syntax and logic errors that are made in java code
-
Describe exception handling and how it relates to javaHandle exceptions in javaDescribe some of the common exceptions in javaDemonstrate some of the common exceptions in javaDescribe how to use try catch blocks within javaUse try catch blocks within javaSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 31sIn 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 44sIn 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
-
7m 11sIn 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
-
4m 14sIn 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
-
5m 4sIn 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
-
4m 55sIn 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
-
3m 26sIn 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
-
5m 13sIn 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
-
7m 7sIn 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
-
6m 17sIn 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
-
6m 49sIn 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
-
5m 10sIn 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
-
4m 35sIn 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
-
43sIn 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.