Learn Java Programming – Inner Class Tutorial

Java

Video is ready, Click Here to View ×


The inner class is one of the four nested classes that I briefly discussed in my Introduction to Nested Classes tutorial. The inner class is defined at the member level and does not have the keyword static in the declaration. By member level I am talking about the same level where instance variables and methods are declared.
class Outer {
String s = “”;
class Inner {
int i = 0;
}
}

The first thing to understand about an inner class is that it is a member of the class…

4 thoughts on “Learn Java Programming – Inner Class Tutorial

Leave a Reply

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