Barclays Capital Interview Question
Senior Software Development EngineersCountry: United States
As per my understanding 'Exception handling' use Template method design pattern.
'Template method design pattern defines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithms structure.'
If we see the API source code, Exception handling class in each hierarchy add its own method on the top of parent class.
Is it observer design pattern wherein the program register for particular exceptions and when an exception occur the program gets notified.
- DashDash May 05, 2013Please let me know your views