Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
What types of object can I throw as exceptions?
Only instances of the System.Exception classes, or classes derived from System.Exception. This is in sharp contrast with C++ where instances of almost any type can be thrown.
No comments:
Post a Comment