Static Nested Classes are NOT Inner Classes!

This is how a Static Nested Class looks like:

class OuterClass {
	
	static class StaticNestedClass {
		
    }
}

To emphasize the differences between Static and Non-Static/Inner Classes I will show you the way in which you have to create an object. For more information about Nested Classes look at this page.

To create an object you have to use a code like this:

OuterClass.StaticNestedClass nestedObject = new OuterClass.StaticNestedClass();

 

In comparison to the way you make an object with an inner class:

OuterClass.InnerClass innerObject = outerObject.new InnerClass();