Use a catch block to display the exception thrown in number two above.

What will be an ideal response?

```
catch(Exception e)
{
System.out.println(e.getMessage());
System.exit(0);
}

```

Computer Science & Information Technology

You might also like to view...

What type of attack is a false warning, often contained in an email message claiming to come from the information technology (IT) department?

A. dumpster diving B. vishing C. hoaxes D. pretexting

Computer Science & Information Technology

What are some of the advantages of the ArrayList class over the Arrays class?

What will be an ideal response?

Computer Science & Information Technology