nerdexam
CompTIA

JK0-018 · Question #428

Which of the following is a best practice for error and exception handling?

The correct answer is A. Log detailed exception but display generic error message. See the full explanation below for the reasoning.

Question

Which of the following is a best practice for error and exception handling?

Options

  • ALog detailed exception but display generic error message
  • BDisplay detailed exception but log generic error message
  • CLog and display detailed error and exception messages
  • DDo not log or display error or exception messages

How the community answered

(58 responses)
  • A
    76% (44)
  • B
    3% (2)
  • C
    14% (8)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full JK0-018 Practice