All methods declared in the inner class are available ... whether they are declared as public or ... private .
If the internal methods are static , then they can always be called by code in the external class. You just need to define a method name with the name of the inner class.
Otherwise, the outer class code needs a reference for an instance of the inner class to call methods on it. (But it normal.)
(If you asked about whether the inner class can call methods in the outer class, this is a bit more complicated. In most cases this applies, but if the inner class is NOT static , it can also call instance methods on its outer class via this .)
source share