What is a Java static class?

A static inner class is a nested class which is a static member of the outer class . It can be accessed without instantiating the outer class, using other static members. Just like static members, a static nested class does not have access to the instance variables and methods of the outer class.9 Şub 2018

Sizin İçin Seçtik  Why do we need static inner classes in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *