5 years ago in Java Exception Handling

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

[A] object of exception class thrown
[B] Error in code
Loading...
Next Question

Overall Stats

Attempted 426
Correct 241
Incorrect 47
Viewed 138

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying Error in code is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying object of exception class thrown is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying object of exception class thrown is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying Error in code is correct answer

Salwa Nouamani
Salwa Nouamani - 1 month ago

Salwa Nouamani from Casablanca, Morocco is saying object of exception class thrown is correct answer

Related Questions

The exception class is in ____ package

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

To create our own exception class , we have to _______

  • [A] Extend exception class
  • [B] Create our own try and catch block
  • [C] use finally block
  • [D] Use throws keyword