300+ free video programming tutorials ― Learn for free!

Java Tutorial - #77 - Inner Class

Category: Java - Author: Karl Hadwen

Home > Java > Java Tutorial - #77 - Inner Class

Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge

The best shared web hosting: https://www.bluehost.com/track/karlhadwen/

The best simple cloud hosting for developers: https://m.do.co/c/426ceabcea09

In this video I'm going to be showing you how to use an inner class within Java. A quote from Java point: Java inner class or nested class is a class i.e. declared inside the class or interface.

We use inner classes to logically group classes and interfaces in one place so that it can be more readable and maintainable.

Additionally, it can access all the members of outer class including private data members and methods.

There are alternatives, such as making an anonymous inner class with an instance initializer (also known as an "double brace initialization").

Like the Cognitive Surge Facebook page

Follow me on Twitter (Feel free to tweet me questions!)