Answer Posted / p.nandakishore
non static inner classes can access all the members of the
outer class i.e both static and nonstatic members.In
nonstatic inner classes we cannot have static declarations
done.To access non static inner class members we outer
class reference.
static inner classes can access only static members of the
outer class.In static inner class we can have static
declarations done. To access static inner class members
no need of outer class reference.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How would you dynamically allocate memory to an array?
What is a singleton in genetics?
Are maps ordered java?
What is port number in java?
What all access modifiers are allowed for top class ?
How are java objects passed to a method and what are native methods?
Outline the major features of java.
Is 0 true or is 1 true?
When parseint method can be used?
What is hashing principle in java?
What class allows you to read objects directly from a stream?
Can a class with private constructor be extended?
How does singleton class work?
What is a loop java?
Are true and false keywords?