Menu

[solved]-1 Throw Exception Notify Part Program Exceptional Condition Occurred Catch Exception Handl Q39012076

1. You throw an exception to notify some other part of theprogram that an exceptional condition has occurred. You catch anexception to handle an exceptional situation that has occurredelsewhere in the program.

TrueFalse

2. Suppose we have a String object and treat the characters frombeginning to end in the following way: we push the character on astack, and we also add the character to a queue. After processingthe entire object, we then pop from the stack and remove from thequeue pairs of characters, and compare then to each other. Whatdoes it mean if all the character pairs match?:

the strings are the same

the strings are different and unrelated

we can only conclude the strings are of the same length

one string is the reverse of the other

Expert Answer


Answer to 1. You throw an exception to notify some other part of the program that an exceptional condition has occurred. You catch… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *