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
Do I need to import java.lang package any time? Why?
What is the final keyword denotes?
What does it mean that a method or field is “static”?
Does java list allow null?
Can the garbage collection be forced by any means?
What about interthread communication and how it takes place in java?
How do you sort a list in java?
Do I need java for windows 10?
How to create an interface?
What does jre stand for?
What is callablestatement? How you can call stored procedure to pass in parameter?
How hashmap increases its size in java?
What happens if main method is not static?
Why we cannot override static method?
How is java created?