May 2012
Intermediate to advanced
679 pages
16h 56m
English
Under normal circumstances, in simple programs, one does not expect an exception to occur. It has to be understood that the ensuing discussion is basically for advanced programmers. The most typical task where this discussion is most relevant is the development of libraries. When someone is writing a library function, he is aware of possible error. But he has no clue about what the user of library wants to do in this circumstance.
Most natural cause of error with constructor is when we are trying to create an object using new operator. Sometimes available memory may not be sufficient. The natural safeguard provided by the system is that it returns “null”. However, programmers hate to check every ...
Read now
Unlock full access