6 years ago in Java Exception Handling

When a method can throw an exception then it is specified by _____ keyword

[A] finally
[B] throw
[C] throws
[D] catch
Loading...
Next Question

Overall Stats

Attempted 578
Correct 226
Incorrect 159
Viewed 193

Answers

Guest
Guest
ihsane KHALLOUQ
ihsane KHALLOUQ - 4 hours ago

ihsane KHALLOUQ from Casablanca, Morocco is saying throws is correct answer

Salah Eddine
Salah Eddine - 16 hours ago

Salah Eddine from Casablanca, Morocco is saying throw is correct answer

Mina Aitlhaj
Mina Aitlhaj - 2 days ago

Mina Aitlhaj from Casablanca, Morocco is saying throw is correct answer

Kamal Addioui
Kamal Addioui - 2 days ago

Kamal Addioui from Casablanca, Morocco is saying throws is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying throws is correct answer

Related Questions

When an array element is accessed beyond the array size , ____ exception is thrown

  • [A] ArrayElementOutOfLimit
  • [B] ArrayIndexOutOfBounds Exception
  • [C] ArrayIndexOutOfBounds
  • [D] ArrayElementOutOfBounds

What happen behind the code int a=50/0;

  • [A] object of exception class thrown
  • [B] Error in code

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