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

If the pressure of a gas is 2.42 arm what is it’s pressure in kPa ? 0.00318 Pa 0.0239 kPa 245 kPa 1840 kPa
Duane bought 63 3/4 inches of chain for an art project. How many 15 inch chains can he make from it?
Water has a density 1.0 g/cm3. What is the mass of 10.0 cm3 of water?
Record the product 51 times 77
HELP I only need these two problems answered2. Arturo can run 1 3/4 miles in 1/4 hour.what is his speed in miles per hour? How many miles can Arturo run in 3 ho
How do Lev Vygotsky and Friedrich Froebel's ideologies compare? Both believed that children do not think as well as adults. Both believed that social learning c
Plz help and plz explain, will mark brainliest if right:)
Explain briefly why it is important to know about the educational theorists and their work
what was another name for the united states capital? A. The Federal City B. The Bread City C. The republic City D. The music City
Each car on a commuter train can sit 114 passengers. If the train has seven cars, how many passengers can the train seat?