Checked Exception

Checked exceptions are also called “compile Time exceptions” Compiler checks those exceptions during the compilation to see whether they are handled or not. If they are not handled, compiler will force us to handle and until we handle it, we get compile time error and we can’t proceed further. Since compiler “checks” for these exceptions […]

Share this article on

State Pattern

State design pattern is one of the behavioural design patterns. This pattern is used when an Object changes its behaviour based on its internal state. Example : Assume some electronic device is an object which has 2 states called “ON” and “OFF” This object behaves differently when the state changes. When the state is “ON” […]

Share this article on
< Previous Next >