1/25
Flashcards to help review key vocabulary and concepts related to exception handling and debugging techniques.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Debugging
The process of identifying and rectifying errors in a program that leads to unexpected behavior.
Backtracking
A debugging technique where you start from the point the problem began and work backward through the code.
Binary Search
A debugging technique where code is divided into halves to systematically narrow the bug location.
Rubber Ducking
Explaining the problem to someone else (or even an inanimate object) articulates the problem out loud or written down forces critical thinking that can lead to discoveries of new insights and solutions.
Log Analysis
Placing these analysis statements in strategic areas of the code can help the debugger identify the issue.
Clustering Bugs
Group error reports into classes of related bugs as they often share common causes or patterns.
Exception
An unexpected or error condition encountered in programming.
Exception handling
Object-oriented techniques that manage or resolve errors.
Error Class
More serious errors that a program usually might not recover from.
Exception Class
Less serious errors that indicate unusual conditions that arise while a program is running and from which the program can recover.
Throwable class
The superclass for all errors and exceptions in the Java language.
IOException
The base class for exceptions thrown while accessing data from files, directories, and streams.
RuntimeException
Only detected during the execution of the application.
ArithmeticException
Raised whenever a wrong mathematical operation appears in the code during runtime.
IndexOutOfBoundsException
Thrown when an index used in arrays, lists, or strings is invalid.
ArrayIndexOutOfBoundsException
Indicates that an array has been accessed with an illegal index, either negative or greater than or equal to the size of the array.
NoSuchElementException
Indicates that the element being requested does not exist.
InputMismatchException
Occurs when the user does not provide the proper type of input or input is out of range.
VirtualMachineError
Indicates that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.
OutOfMemoryError
Thrown when there is insufficient space to allocate an object.
InternalError
Indicates unexpected internal error has occurred in the Java Virtual Machine.
Stack trace history list / Stack trace
Shows each method called as the program ran after each attempted execution.
Try Block
The block of code a programmer attempts to execute while acknowledging that an exception might occur.
Catch Block
A segment of code that handles an exception that might be thrown by the try block that precedes it.
Throw Statement
Sends an Exception object out of a block or method so it can be handled elsewhere.
Finally Block
Executes whether or not the preceding try block identifies an Exception.