Which are Java's system classes?

南笙酒味 提交于 2019-12-19 03:12:19

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2670269/which-are-javas-system-classes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!