单项选择题
int[] myArray = new int[] {1,2,3,4,5}; 以下哪个选项可以用一个数组创建一个列表?()
A. List myList = myArray.asList(); B. List myList = Arrays.asList(myArray); C. List myList = new ArrayList(myArray); D. List myList = Collections.fromArray(myArray);
Which is true?() A. Line 3 will print the value 2.B. Li...
Which is true?()
A. Line 3 will print the value 2. B. Line 3 will print the value 3. C. Compilation will fail because of an error in line 1. D. Compilation will fail because of an error in line 2.
下面方法返回值是什么?() A. REDHEB. edheC. EDHD. edhelE. redhF. RE...
下面方法返回值是什么?()
A. REDHE B. edhe C. EDH D. edhel E. redh F. RED
对下面父类方法重写正确的是() A.public int method (int a , int b){……}...
对下面父类方法重写正确的是()
A.public int method (int a , int b){……} B.private int method (int a , int b){……} C.protected void method (int a , int b){……} D.以上答案都不正确