相关考题
-
多项选择题
使用反射创建对象有哪几种方式?()。
A.使用类的Class对象调用newInstance()方法
B.使用类的Constructor对象调用newInstance()方法
C.使用类的Class对象调用invoke()方法
D.使用类的Constructor对象调用invoke()方法 -
多项选择题
读取扩展名为.properties的配置文件信息可能会使用到以下哪些类?()。
A.File
B.FileInputStream
C.FileOutputStream
D.Properties -
多项选择题
下面哪些语句可以创建一个长度为5的整型数组?()。
A.int[]arr=newint[5]
B.ObjectobjArr=Array.newInstance(int.class,5)
C.int[5]arr=newint[]
D.int[5]arr=newint[5]
