Java finally and other test program.