5 years ago in Java Exception Handling

Which method is used to print the description of the exception?

[A] printStackTrace()
[B] printExceptionMessage()
[C] printStackMessage()
[D] printExceptionTrace()
Loading...
Next Question

Overall Stats

Attempted 471
Correct 197
Incorrect 112
Viewed 162

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 4 days ago

Shamsa hafeez from Lahore, Pakistan is saying printStackTrace() is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying printExceptionMessage() is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying printExceptionMessage() is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying printExceptionTrace() is correct answer

Salwa Nouamani
Salwa Nouamani - 1 month ago

Salwa Nouamani from Casablanca, Morocco is saying printStackTrace() is correct answer

Related Questions

If a statement tries to divide by zero which exception is thrown?

  • [A] ArithemticException
  • [B] NullPointerException
  • [C] NumberFormatException
  • [D] None of these

In case of multiple catch blocks,______

  • [A] The superclass exception must be caught first
  • [B] The superclass exception can not caught first
  • [C] Either super or subclass can be caught first.
  • [D] None of these

The exception class is in ____ package

  • [A] java.file
  • [B] java.io
  • [C] java.lang
  • [D] java.util