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

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

问题描述

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

java -ea -dsa

<块引用>

"一般情况下启用断言,但是禁用系统中的断言类."

哪些是系统类?

解决方案

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

When reading some documentation about assertions, I found:

java -ea -dsa 

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

Which are the system classes?

解决方案

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天全站免登陆