Can a static nested class be instantiated inside an instance method of the outer class?
No, a static nested class cannot be instantiated inside an instance method because it can only be instantiated from the outer classâ€™s static context.
That's incorrect. A static nested class can indeed be instantiated inside instance methods of the outer class.
Can you explain why this is allowed, given that static nested classes do not require an instance of the outer class?