哪些是Java的系统类? [英] Which are Java's system classes?

查看:292
本文介绍了哪些是Java的系统类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在阅读有关断言的一些文档时,我发现:

When reading some documentation about assertions, I found:

java -ea -dsa 




一般启用断言,但
禁用系统
类中的断言。

"Enables assertions in general, but disables assertions in system classes."

哪些是系统类?

推荐答案

根据断言文档,系统类是没有显式类加载器的类,即引导类加载器加载的类。 AFAIK表示 rt.jar 的内容,即整个标准API。

According to the assertions documentation, system classes are classes "which do not have an explicit class loader", i.e. the classes loaded by the bootstrap classloader. AFAIK that means the contents of rt.jar, the entire standard API.

这篇关于哪些是Java的系统类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆