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

(3x^5 + 3x^2-4x^3+x-6)-(x^3+4x^4+2x^2-10x)
the word rude has several differnt meanings which one is being used in the previouse passage
An accident again changed the current of my ideas. When I was about fifteen years old we had retired to our house near Belrive, when we witnessed a most violent
write a problem that can be solved by comparing feet and inches
The measure of angle 1 is 3x + 10 and the measure of angle 4 is (4x-15). What is the measure of angle 7
Ms. s. is a 22-year-old secretary. she presents with fatigue, malaise, and a rash. on auscultation of her heart, you note murmurs of mitral regurgitation and ao
What is the software that protects your computer from harmal files, trojan horses, and worms?
As electronegativity difference increases, the degree of ionic character ____ ? increases stays the same decreases
Are these correct? I’ll give brainliest answer if there’s two
If it is January then there are 31 days this month write the inverse of the conditional statement