Other contributors have said "What is inner classes in java?" is the same question as "What is inner class in java?" If you believe that these are not asking the same thing and should be answered differently, click here

What is inner class in java?

Answer:

Quite simply, an inner class is one class within another. Typically the inner class will be a private inner class, and will only be used by the outer class.

class MyOuterClass {

class MyInnerClass {
}

}

First answer by Moobler. Last edit by Moobler. Contributor trust: 354 [recommend contributor recommended]. Question popularity: 1 [recommend question].