Sajan, inorder to understand inner classes better, why don't you read...."Getting in touch with your inner class", at the campfire stories(the link is on the Javaranch homepage). It's a wonderful story, and I understood inner classes a lot better after reading it
.
Hope this helps
Rebecca