(¶àÑ¡)Çë¿´ÏÂÁдúÂ룺 public class Old { public static Object get(List list) { return list.get(0); } } ÒÔÏÂÑ¡Ïîµ÷ÓÃget·½·¨£¬ÄܱàÒëͨ¹ýµÄÊÇ£º
A.Object o = Old.get(new LinkedList()); B.Object o = Old.get(new LinkedList>()); C.String s = Old.get(new LinkedList
(¶àÑ¡)²é¿´ÈçÏ´úÂ룺 public class Foo { public void method(String str,int age){} } ÏÂÁÐÑ¡ÏîÖУ¬ºÍ Foo ÀàÖÐ method ·½·¨ÖØÔصķ½·¨ÊÇ£¨£©¡£
A.public int method(String str,int age){} B.public void method(int year,String s){} C.public int method(int year,String s){} D.public int method(String str){} ÕýÈ·´ð°¸£ºBCD 47.
(¶àÑ¡)Çë¿´ÏÂÁдúÂ룺 class One { public One foo() { return this; } } class Two extends One { public One foo() { return this; } } class Three extends Two { <²åÈë´úÂë> } ÏÂÁÐÑ¡ÏîÖеĴúÂ룬·ÅÖÃÔÚ<²åÈë´úÂë>´¦ÎÞ±àÒë´íÎóµÄÊÇ£º
A.public void foo() { }
B.public Object foo() { return this; } C.public Two foo() { return this; } D.public One foo() { return this; } ÕýÈ·´ð°¸£ºCD 48.
(¶àÑ¡)Ëùν¡°Ë®ÏÉ»¨¡±ÊýÊÇÒ»¸öÕûÊýµÈÓÚ¸÷λÊý×ÖÁ¢·½µÄºÍ£¬ÀýÈ磺153 = 1*1*1+5*5*5+3*3*3£¬ÏÂÃæµÄ³ÌÐòÓÃÓÚÊä³ö2~1000ÄÚµÄË®ÏÉ»¨Êý£º for (int n = 2; n <= 1000; n++) { ¿Õ°×´¦ if (s == n) { System.out.println(n); } } ÏÂÁÐÑ¡ÏîÖУ¬¿Õ°×´¦¿ÉÒÔÌîÈëµÄ´úÂëÊÇ£º£¨£©¡£
A.int s = 0, n1 = n; while (n1 > 0) { int t = n1 % 10; s += t * t * t; n1 /= 10; }
B.int s = 0, n1 = n; while (n1 > 0) { int t = n1 / 10; s+= t * t * t; n1 %= 10; }
C.int s = 0; for(int n1 = n; n1>0; n1 /= 10) { int t = n1; s += t * t * t; }
D.int s = 0; for(int n1 = n; n1>0; n1 %= 10) { int t = n1 / 10; s += t * t * t; }
ÕýÈ·´ð°¸£ºAC 49.
(¶àÑ¡)ÏÂÁи³ÖµÓï¾äÖУ¬»áÓбàÒë´íÎóµÄÊÇ£¨£©¡£
A.int a = 8888888888; B.char b = 1000+300; C.byte c = 100+30; D.int d = 'a'+'b'+'c'; ÕýÈ·´ð°¸£ºAC 50.
(¶àÑ¡)ÏÂÁÐÂß¼±í´ïʽ£¬ÖµÎªfalseµÄÊÇ£¨£©¡£ A.\ B.\
C.\ D.\ÕýÈ·´ð°¸£ºBCD