Java Exception Errors

Descrição

AP Computer Science Quiz sobre Java Exception Errors, criado por Shannon Anderson-Rush em 25-10-2018.
Shannon Anderson-Rush
Quiz por Shannon Anderson-Rush, atualizado more than 1 year ago
Shannon Anderson-Rush
Criado por Shannon Anderson-Rush mais de 5 anos atrás
651
0

Resumo de Recurso

Questão 1

Questão
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.
Responda
  • ArithmeticException
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ClassCastException

Questão 2

Questão
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.
Responda
  • ArithmeticException
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ClassCastException

Questão 3

Questão
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.
Responda
  • ArithmeticException
  • ClassCastException
  • ArrayIndexOutOfBoundsException
  • NullPointerException

Questão 4

Questão
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.
Responda
  • NullPointerException
  • ArrayIndexOutOfBoundsException
  • ArithmeticException
  • ClassCastException

Semelhante

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