How can i create a instance of the following Class and access its methods. Example:
public class A {
public static class B {
public static class C {
public static class D {
public static class E {
public void methodA() {}
public void methodB(){}
}
}
}
}
}
A.B.C.D.E e = new A.B.C.D.E();not sure what "How" means.static, they are generally called static nested classes. They are definitely not inner classes. JLS §8.1.3. Inner Classes and Enclosing Instances: An inner class is a nested class that is not explicitly or implicitly declaredstatic.