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