java中的isused,什么是原始類加載器?它是如何在Java中使用的?

Java的类加载机制确保每个类都由类加载器加载,但如何避免在加载过程中产生无限递归?本文探讨了加载第一个类(如java.lang.Object)的特殊性,指出其加载器——原始类加载器(primordial classloader)的重要性,它是解决此问题的关键。进一步了解Java安全架构和Java安全相关的知识将有助于深入理解这一机制。
摘要由CSDN通过智能技术生成

2

In Java every class has to be loaded by some class loader.

在Java中,每個類都必須由一些類加載器加載。

How is the first class loaded? It has to be loaded through some class loader (which is just another class), so without some special code this would lead to infinity recursion.

如何加載第一堂課?它必須通過一些類加載器(這只是另一個類)加載,因此如果沒有一些特殊的代碼,這將導致無限遞歸。

The class loader that loads the first classes (java.lang.Object, java.lang.Class, java.lang.String, java.lang.ClassLoader and others) can therefore not be a 'normal' class loader.

因此,加載第一個類(java.lang.Object,java.lang.Class,java.lang.String,java.lang.ClassLoader等)的類加載器不能是“普通”類加載器。

It is this class loader that is referenced as the primordial class loader (primordial: from latin, meaning "the first", "the origin(al)")

正是這個類加載器被引用為原始類加載器(原始:來自拉丁語,意思是“第一個”,“起源(al)”)

For further study see the Java Security Aritecture and Securing Java

有關進一步研究,請參閱Java Security Aritecture和Securing Java

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值