为什么 Throwable.class.getClassLoader()
返回 null?
是不是有什么隐藏的知识?
最佳答案
Returns the class loader for the class. Some implementations may use null to represent the bootstrap class loader. This method will return null in such implementations if this class was loaded by the bootstrap class loader.
因此 Throwable
类由 JVM 实现中的引导类加载器加载。
关于java - 为什么 Throwable.class.getClassLoader() 返回 null?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24046386/