What are the differences between local inner class and member inner class?

inner class: Can only exist withing the instance of its enclosing class. Has access to all members. local class: class declared in a block. It is like an inner class (has access to all members) but it also has access to local scope.

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

Leave a Reply

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