What is a static nested class?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is a static nested class?
Rating:
A nested class declared as static is called a static nested class. A static nested class can directly access only static variables and methods defined in its enclosing class. However, it cannot refer directly to instance variables or methods defined in its enclosing class. It can refer them only through an object reference.
Rating:
Was this information helpful?
Other articles
- What is the bitwise right shift operator?
- What are unary + and - operators?
- What is the start() method?
- What is the Runnable interface?
- What is the bitwise AND operator?