I was just checking inner classes and I know we can declaired the private and static inner class however I do not under stand what can we achieve by declaring a inner class private and static.
class OuterClass {
private static class InnerClass{
}
}
As this class is private no other class would be able to access InnerClass so Static would not help I think.
Is it just allowed for simplicity in java