The circumstances that can prevent execution of the code in a finally block are:
An exception arising in the finally block itself The death of the thread The use of System.exit() Turning off the power to the CPU
1. static variables initialization
2. static initializer block execution
3. constructor header (super or this)
4. instance variable initialization
5. rest of the code in the constructor
Originally posted by peter greaves:
int k=6;
k = k++;
System.out.println(k);
prints
6