Wednesday February 8th, 2023
Lecture Outline
- An interfaces is an abstract class that consists of method definitions with no body. It allows to use to achieve common functionality with different implementation
- Try/Catch allows us to deal with errors without crashing the program
- Java will always implicitly define a blank constructor for each class (no arguments, empty method body)
- The debugger is an incredibly powerful tool in your IDE. You must first place a breakpoint somewhere in your code (double click a line number) and then select the debug option
- Rubber duck debugging can be a helpful solution to identify and fix bugs in your code
Here is a hierarchy of all the different Java exceptions and errors you can catch:
Lecture Recording
Code