5 years ago in Java Exception Handling

The keyword use to declare the Exception

[A] throw
[B] throws
Loading...
Next Question

Overall Stats

Attempted 420
Correct 180
Incorrect 106
Viewed 134

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 3 days ago

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

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying throws 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 throws is correct answer

Salwa Nouamani
Salwa Nouamani - 1 month ago

Salwa Nouamani from Casablanca, Morocco is saying throws is correct answer

Related Questions

Which of the following must be true of the object thrown by a throw statement?

  • [A] It must be assignable to the Throwable type
  • [B] It must be assignable to the Error type
  • [C] It must be assignable to the Exception type
  • [D] It must be assignable to the String type

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

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