What is inner class and outer class in Java?

Nested Classes In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class .

Sizin İçin Seçtik  What is the difference between static and class?

Leave a Reply

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

What is inner class and outer class in Java?

Nested Classes In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class .

Sizin İçin Seçtik  What is the difference between inner class and local class?

Leave a Reply

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