Does the Java ClassLoader load inner classes?

后端 未结 5 1592
迷失自我
迷失自我 2020-12-08 10:50

If I have a inner class declaration such as:

Class A {
    public static class B {
    }
}

followed by:

Class impl         


        
5条回答
  •  一向
    一向 (楼主)
    2020-12-08 11:15

    No, the nested class will not be loaded, in either case.

提交回复
热议问题