class-loader.

本文详细介绍了Java中类加载器的层次结构,包括引导类加载器如何加载核心模块和基元类,基模块类加载器如何加载非核心模块类和其他基模块类。此外,还阐述了Java虚拟机查找和加载类的顺序,即从平台自带的类开始,再到扩展类,最后到用户定义的类。

          the jdk hierarchical relationship of class-loader

      

----Module Class Loading and Bootstrapping----

bootstrap loader:

   *loads primordial classes and core module system classes.

Base module loader

  *loads non-core module system classes and all other classes in the base module.

 

ref:

Project Jigsaw: Module Class Loading and Bootstrapping

 

----How Classes are Found----

  how the 'java(java launcher)' finds classes:

  the vm searches for and loads classes in the order of:

  a,bootstrap classes,which compriss the java platform,including the classes in the rt.jar and other important .jar files.

  b,extension classes,which use the java extension mechanism,bundled as .jar files in the “lib/ext” extension directory.

  c,user(defined) classes,which were definded by developers and third parties that does not take advantage of the extension mechanism(identify these classes using the -classpath option).

  more info for How Classes are Found

  

转载于:https://www.cnblogs.com/listened/p/3674680.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值