5 years ago in Java Exception Handling

To explicitly throw an exception , ______ keyword is used.

[A] try
[B] ctach
[C] throw
[D] throwing
Loading...
Next Question

Overall Stats

Attempted 498
Correct 315
Incorrect 38
Viewed 145

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 5 days ago

Shamsa hafeez from Lahore, Pakistan is saying throw is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying throw is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying throw is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying try is correct answer

Salwa Nouamani
Salwa Nouamani - 1 month ago

Salwa Nouamani from Casablanca, Morocco is saying throw 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

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

  • [A] printStackTrace()
  • [B] printExceptionMessage()
  • [C] printStackMessage()
  • [D] printExceptionTrace()

Arithmetic Exception is

  • [A] Checked Exception
  • [B] Unchecked Exception