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 toHexString() method of the Integer class?
- String, StringBuffer and StringBuilder classes
- What is an ObjectInputStream?
- What is the decrement operator?
- What is ClassCastException?