What happens when java program starts?

后端 未结 4 1376
予麋鹿
予麋鹿 2021-02-02 02:42

Recently have been touched Java classloaders and suddenly recognized that do not fully understand what happens step-by-step when someone calls

j         


        
4条回答
  •  攒了一身酷
    2021-02-02 03:17

    •Who and how decides which classes should be loaded at startup and which once needed?

    we need to understand the fundamentals of java class loading. Initially bootstrap classloader (it is implemented natively as part of the VM itself) is responsible for loading core system classes. Then there are other class loaders as well like Extension, system, user-defined(optional) class loaders which decide when and how classes should be loaded. Fundamentals of class loading

提交回复
热议问题