JAVA 1 An object that represents an error or condition that

JAVA

1. An object that represents an error or condition that prevents execution from proceeding normally is:

a stack
a logic error
a runtime error
an Exception

2. Java provides what special construct to help handle Exceptions?

try/catch
tried/caught
try/caught
tried/catch

3. Which of the following are built-in Java Exceptions? Note: you must choose all correct answers to get this question right.

NegativeInputException
ArithmeticException
StackOverflowException
IndexOutOfBoundsException

4. The ______________________ is a list of method calls and code line numbers usually seen when there is an error or uncaught exception.

stack error
stack code
stack output
stack trace

5. In some cases, a Java compiler or your IDE requires you to write code to deal with a particular type of exception that might occur. This type of exception is called a

checked exception
forced exception
runtime exception
priority exception

Solution

Question 1:

Answer: an Exception

Question 2:

Answer: try/catch

Question 3:

Answer:

ArithmeticException
IndexOutOfBoundsException

Question 4:

Answer: stack trace

Question 5:

Answer: checked exception

JAVA 1. An object that represents an error or condition that prevents execution from proceeding normally is: a stack a logic error a runtime error an Exception
JAVA 1. An object that represents an error or condition that prevents execution from proceeding normally is: a stack a logic error a runtime error an Exception

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site