Fundamentally, an inner class is the same as any other class, but is declared inside (that is, between the opening and closing curly braces of) some other class. In fact, you can declare nested classes in any block, including blocks that are part of a method.
frnds this is what i infer after going through a mock question of inner class...
a nested class is one that is declared inside a class or an interface ... if that doesnt have a name then it can be anonymous class....if has then its a non-anonymous class...if that is not inside any method then its a member class..and if its non-static then its an inner class.....
can anonymous class be declared inside a method??? If a nested class does not have a name, then it can not be called a local class even if it is declared inside of a block. Therefore, an anonymous class is never called a local class
please explain me the bold written sentence ....... [ October 18, 2005: Message edited by: srikanth reddy ]
Sorry Srikanth, I think i really need to read JLS before answering you anything more. Check it out even i am going to do the same here. Good luck! Thanks, for now i know this is one more area where I need to concentrate. [ October 18, 2005: Message edited by: Akhil Trivedi ]
By using static block of code one can run a java program with out using main method, but to what extent the static code has power I am not aware of. Anyone plz confirm, and resolve my querry about static block's Power.