Java Exception Errors

Description

AP Computer Science Quiz on Java Exception Errors, created by Shannon Anderson-Rush on 25/10/2018.
Shannon Anderson-Rush
Quiz by Shannon Anderson-Rush, updated more than 1 year ago
Shannon Anderson-Rush
Created by Shannon Anderson-Rush about 6 years ago
654
0

Resource summary

Question 1

Question
Thrown when an exceptional arithmetic condition has occurred. For example, an integer "divide by zero" throws an instance of this class. [blank_start]_____[blank_end] is the type of error.
Answer
  • ArithmeticException
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ClassCastException

Question 2

Question
An Exception that can occur when you try to improperly convert a class from one type to another. [blank_start]____[blank_end] is this type of exception.
Answer
  • ArithmeticException
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ClassCastException

Question 3

Question
Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. [blank_start]___[blank_end] is this type of exception.
Answer
  • ArithmeticException
  • ClassCastException
  • ArrayIndexOutOfBoundsException
  • NullPointerException

Question 4

Question
If you try to follow a null reference, you will get this error which tells you that there is no object to reference. [blank_start]____[blank_end] is this type of exception.
Answer
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ArithmeticException
  • ClassCastException
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr