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

A number x is no more than 4 units away from 2. Write and solve an absolute-value inequality to show the range of possible values of x.
Find the value of the missing angles in the following figures. Show working out
Help me answer this questions please
Angle 1 and Angle 2 are supplementary angles. Find x and the measure of Angle 1. Angle 1 = (5x+12) Angle 2 = (4x +6° X= ? The measure of Angle 1 = ? degrees
What cost is most closely associated with employer-provided healthcare? O interest payments O paycheck premium withdrawals 0 401K contributions O Social Securit
PLEASE I NEED HELP ASAP !!
How does the author contrast the different points of view that the characters have?
write an experession that shows 10 ^4
Show that 0.27 is multiplicative inverse​
How does the tone shift at this point in the story?