Java 的系统类有哪些?

发布于 2024-08-29 23:34:03 字数 150 浏览 2 评论 0原文

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

java -ea -dsa 

“一般情况下启用断言,但是 禁用系统中的断言 类。”

哪些是系统类?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倒带 2024-09-05 23:34:03

根据 断言文档 ,系统类是“没有显式类加载器”的类,即由引导类加载器加载的类。 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.

夕色琉璃 2024-09-05 23:34:03

根据相同的文档系统,类是没有类加载器的类。可能是在引导类路径上找到的类

Per the same documentation system classes are classes which do not have a class loader. Could be the classes found on the boot class path

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文