Computer Science, asked by hysteriics, 4 months ago

When you _____ an exception, you send a message that an error has occurred to another part of the program.

(fill the blank)

A. call out

B. detect

C. raise

D. send up

Answers

Answered by sushmaa1912
2

In a Java program, an exception is raised when the coder detects an error.

Explanation:

  • In a Java program, an exception is raised when the coder detects an error.
  • It describes an error that has occurred in a piece of code.
  • When an error condition arises, an object which represents that error is created and thrown in the method that caused the error.
  • That method to which the exception is thrown may choose to handle the exception itself or pass it on.
  • At some point of the time, the exception is caught and the error is processed.
  • Hence option C is the correct answer.

Similar questions