What is the use of static inner class?

Java static nested class A static class is a class that is created inside a class, is called a static nested class in Java. It cannot access non-static data members and methods. It can be accessed by outer class name. It can access static data members of the outer class, including private .

Sizin İçin Seçtik  Zaptetmek nasıl yazılır TDK?

Leave a Reply

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