Vaishakh Menon wrote:
But name of 4th .class file is Test$1Checker.class. Why there is a '1' before inner class name ? why it is Test$1Checker.class instead of Test$Checker.class ?
Because class 'Checker' is defined inside the anonymous class, and not directly inside class
Test.
You should indent your code properly; because of the bad indentation, it is really hard to see the structure of the code.