180k views
1 vote
When a program terminates because a thrown exception is not handled, the program:

a) starts up again automatically

b) opens a dialog box, which asks the user whether the program should start again, end, or enter a debugging mode

c) saves all output to a disk file called the "runStackTrace.txt"

d) opens a dialog box for the user to specify a disk file name, and all output is stored to that disk file

e) outputs a message indicating what and where the exception was thrown
e) outputs a message indicating what and where the exception was thrown

User Guenhter
by
4.9k points

1 Answer

0 votes

Answer:

Option (e)

Step-by-step explanation:

Option (e) is the answer. It indicates the exception thrown and displays it. It also indicates the place where the exception was thrown ( at what line of the code the exception was thrown )

Option (a) is false as the program which was terminated because of an exception which was not handled doesn't starts automatically.

Option (b) is false as it doesn't opens a dialogue box about running the program another time or anything. It just terminates because of the unhandled exception.

Option (c) is false as it doesn't saves all the output to a disk file called the "runStackTrace.txt".

Option (d) is false as it doesn't open a dialogue box. The program terminates because of the unhandled exception.

User Galzor
by
5.4k points