Monthly Archive: April 2013

finally block in Java

The finally Keyword: The finally keyword is used to create a block of code that follows a try block. A finally block of code always executes, whether or not an exception has occurred. Using a …

Instance initializer block in Java

Apart from methods and constructors, Initialization Blocks are the third place in a Java Program where operations can be performed. Initialization Blocks come in two flavors: Static Initialization Blocks: Runs first when the class is …