当前位置:编程学习 > JAVA >>

Constructor<?> 反射中左边这段代码是什么含义呢?

Constructor<?> constructorUserinfo = classRef
.getDeclaredConstructor((Class<?>[]) null); --------------------编程问答-------------------- 没有人知道吗? --------------------编程问答--------------------
java.lang.Class中
public Constructor<T> getDeclaredConstructor(Class<?>... parameterTypes)
Returns a Constructor object that reflects the specified constructor of the class or interface represented by this Class object
等号左边?
跟普通的方法调用一样的吧!
有什么疑问吗? --------------------编程问答-------------------- 问号代表什么啊? --------------------编程问答-------------------- 建议楼主看一下泛型、通配符。
补充:Java ,  Java SE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,