Until this chapter, we’ve found dealing with errors detected by constructors to be a bit awkward. Explain why exception handling is an effective means for dealing with constructor failure.
What will be an ideal response?
A thrown exception passes to the outside world the information about the failed con- structor and the responsibility to deal with the failure. Exceptions thrown in con- structors cause objects built as part of the object being constructed to be marked for eventual garbage collection.
You might also like to view...
An office lighted with warm, incandescent lighting indicates a tendency toward:
A) formal communication. B) gathering information from memos. C) casual communication. D) a person that is interested in external information.
People use all of the following to view Web pages EXCEPT ____.
A. projectors B. display boxes C. e-book readers D. netbooks
The ________ function returns the position of a value
Fill in the blank(s) with correct word
Should posters in a series share a common vocabulary? If so, why?
What will be an ideal response?