下列程序执行后,baz的值应是( )。 int index=1; int fox[ ]=new int[3]; Int bar=fox[index]; int baz:bar+index;
A. 8,6,4,1
B. 8,6,3,2
C. 8,8,4,1
D. 8,6,4,2
参考答案:D
解析:本题考查的是方法重载的概念及应用,本题中应顺调查用test( ), test(5)和test(6,8)方法,所以答案为选项C)。
下列程序执行后,baz的值应是( )。 int index=1; int fox[ ]=new int[3]; Int bar=fox[index]; int baz:bar+index;
A. 8,6,4,1
B. 8,6,3,2
C. 8,8,4,1
D. 8,6,4,2
参考答案:D
解析:本题考查的是方法重载的概念及应用,本题中应顺调查用test( ), test(5)和test(6,8)方法,所以答案为选项C)。