| Author |
Inner class doubt
|
Surekha Reddy
Greenhorn
Joined: Nov 11, 2005
Posts: 20
|
|
Hi All, I have a doubt regarding Inner class.. Can we call a local class in a static block as an inner class?? As far as i know member classes, local classes and anonymous classes which are non-static are called inner classes. Correct me if i'm wrong. Reagrds, Surekha.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
|
Sorry, when you say "can we call a local class" does that mean "can my program instantiate an instance of a local class" or "can people use the name X when talking about a local class"?
|
 |
Surekha Reddy
Greenhorn
Joined: Nov 11, 2005
Posts: 20
|
|
Hi, Which of the following are true? 1) A static member class is also called as an inner class. 2) A non-static member class is also called as an inner class. 3) A local class in a static block is also called as inner class. 4) A local class in a non-static block is also called as inner class. Hope my question is clear now. Thanks in advance!
|
 |
 |
|
|
subject: Inner class doubt
|
|
|