Question: what is the difference between inner class and outer class in java?
Answer: Non-static nested classes are called inner classes. A nested class is a member of its enclosing class. Non-static nested classes (inner classes) have access to other members of the enclosing class, even if they are declared private. ... (Recall that outer classes can only be declared public or package private.)