agnes71 agnes71
  • 14-04-2019
  • Computers and Technology
contestada

a program to illustrate exceptional handling​

Respuesta :

tonb
tonb tonb
  • 14-04-2019

You surround your part of the program that can throw exceptions with a

try { ... } block and place a catch(...) { ... } directly below it.

You could put code in the try block that divides by zero to see an exception in action. Alternatively, you can throw one yourself using the throw keyword.

Answer Link

Otras preguntas

Mark, June & Henry share some money in the ratio 1:9:4. In total, Mark and Henry receive £25. How much does June get?
many learners perform well in Grade 12 but are still not accepted into universities why​
hi, timed text please help! ​
The ratio of cats to dogs at an animal rescue is 70:63. If the ratio were to stay the same, how many dogs will there be if there are 10 cats?
if p ≥ q, then -p ≤ -q
Following the food safety guideline is
Benny sold half of his comic books and bought seven more he now has 16 how many did he begin with?
find the length of the missing side​
The tittle of " the land of morning calm" was given to South Korea by ______.​
Linear or non linear?