What is the advantage of static class in Java?

Benefits of a Static Class A static class can never be instantiated . Static classes can’t directly access non-static members of a class. It can interact with them only through an object reference.

Sizin İçin Seçtik  What is the use of anonymous inner class?

Leave a Reply

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