1609µÚÒ»´ÎÔ¿¼Ïêϸ½âÎö ÏÂÔØ±¾ÎÄ

return Geodetics.DIAMETER/2.0; } } D. import com.tarena.*; public class TerraCarta { public double halfway(){

return Geodetics.DIAMETER/2.0; } } ÕýÈ·´ð°¸£ºAD³£Á¿¿ÉÒÔÓÃÀàÃûµã³öÀ´

47.(¶àÑ¡)ÔÚJavaÓïÑÔÖУ¬ÏÂÁÐ˵·¨ÕýÈ·µÄÊÇ£¨£©¡£ A.Ò»¸ö½Ó¿Ú¿ÉÒԼ̳жà¸ö½Ó¿Ú B.Ò»¸öÀà¿ÉÒԼ̳жà¸öÀà C.Ò»¸öÀà¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú D.Ò»¸öÀà¿ÉÒÔÓжà¸ö×ÓÀà ÕýÈ·´ð°¸£ºACD

48.(¶àÑ¡)Çë¿´ÏÂÁдúÂ룺 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 49.

(¶àÑ¡)²é¿´ÈçÏ´úÂ룺 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

ÖØÔØÒªÇó·½·¨ÃûÏàͬ£¬²ÎÊýÁÐ±í²»Í¬,Óë·µ»ØÖµÎÞ¹Ø

50.

(¶àÑ¡)²é¿´ÈçÏ´úÂ룺 class A {

protected int method (int a, int b) { return 0; } £ý ÏÂÁÐÑ¡ÏîÖУ¬¿ÉÒÔÔÚ A µÄ×ÓÀàÖÐʹÓõÄÊÇ£¨£©¡£

A.public int method (int a, int b) { return 0; } B.private int method(int a, int b) { return 0; } C.private int method(int a, long b) { return 0; } D.public short method(int a, int b) { return 0; }

ÕýÈ·´ð°¸£ºAC