thumbnail

Java Exceptions

When the Java virtual machine has an error, it can throw one of many exceptions. How many of these common Java exceptions can you name?
This is not an exhaustive list of exceptions
Many exceptions can also be thrown in circumstances other than the ones listed here
Quiz by
mOctave
Rate:
Last updated: September 17, 2024
You have not attempted this quiz yet.
First submittedSeptember 17, 2024
Times taken33
Average score26.7%
Report this quizReport
4:00
Enter answer here
0
 / 15 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
Package
Thrown When...
Exception
java.lang
You try to load a class by its name, but the class doesn't exist.
ClassNotFoundException
You try to divide by zero.
ArithmeticException
You attempt to find the numerical value of this hint.
NumberFormatException
You try to access the 5th value in a data structure with only 4 values.
IndexOutOfBoundsException
You try to access a property of a null object.
NullPointerException
You try to add an array and a map together.
UnsupportedOperationException
The security manager gets mad at you.
SecurityException
java.util
You fail to read data from a JAR file.
JarException
You try to pop a value off an empty stack.
EmptyStackException
You try to use an Amreican locale.
IllformedLocaleException
java.io
You try to take input from a file that doesn't exist.
FileNotFoundException
java.awt
Abstract Window Toolkit doesn't like you.
AWTException
java.net
You don't have an internet connection.
HttpTimeoutException
java.sql
You try to divide by zero, but you're using SQL.
SQLDataException
java.time
Java fails to generate a date and time.
DateTimeException
Save Your Stats
Your Next Quiz
Name all 50 states in the USA. Easy, right?
Can you name all the countries that have ever been members of OPEC, the Organization of Petroleum Exporting Countries?
Drag the flag onto the correct state. Careful, though! One wrong move and the game ends.
Drag the flag onto the correct country. Careful, though! One wrong move and the game ends.
Comments
No comments yet