Class.forName使用的类加载器是什么?
api上说
Returns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to:
Class.forName(className, true, currentLoader)
where currentLoader denotes the defining class loader of the current class.
这个currentLoader是哪个loader?
是Thread.currentThread().gettContextClassLoader() 吗?
如果不是那currentLoader是哪个?
Returns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to:
Class.forName(className, true, currentLoader)
where currentLoader denotes the defining class loader of the current class.
这个currentLoader是哪个loader?
是Thread.currentThread().gettContextClassLoader() 吗?
如果不是那currentLoader是哪个?
...全文
相关推荐
Java的ThreadContext类加载器的实现
主要介绍了Java的ThreadContext类加载器的实现,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
Class.forName
Class.forName(xxx.xx.xx) 返回的是一个类 Class.forName(xxx.xx.xx);的作用是要求JVM查找并加载指定的类,也就是说JVM会执行该类的静态代码段
在Java的反射中,Class.forName和Class
在Java的反射中,Class.forName和ClassLoader的区别共4页.pdf.zip
认识Java的Class类.doc
认识Java的Class类.docaaaaa
Classfor的用法
Classfor的用法以及forName的定义,对字符串重新定义为一个对象的用法


Java SE
