I have two compilation units:
public class OuterClass{ private static class InnerClass{ public String test(){ return \"testing123\";
Private access modifier is stronger than package one (i.e. not having an access modifier at all in Java). Hence private elements of class - be it fields, methods or inner classes - are accessible only within that class.