Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java±ÊÊÔÌâ×ܽáÓë´ó¼Ò·ÖÏí

javaÊÔÌâ
http://202.201.112.11/jpk/apply/teacher/preface/53/test123/test3/exam.htm
1.½Ó¿ÚÖз½·¨µÄÇ°ÃæÓÐÄÄЩÐÞÊηû
 ·ÃÎÊȨÏÞ ·µ»ØÖµÀàÐÍ ÊÇ·ñ¾²Ì¬ ÊÇ·ñ³éÏó
2.ÒÔÏÂÄĸöÎªÕæ
  Interger a = new Interger(9);
  Interger b = new Interger(9);
  Long c = New Long(9)
-----
  A.  a==b
  B.  b==c
  C.  a.equals(b)
  D.  b.equals(new Interger(9))
cd
3.ÒÔÏÂÄÄÁ½¸ö·½·¨¿ÉÒÔ¼Óµ½threeÖÐ
  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 int foo(){return 1;}
  C.  public one foo(){return this;}
  d.  public two foo(){return this;}
  e.  public object foo(){return this;}
cd
4.ÒÔÏÂÄÄЩΪtrue
  class a{}
  class b extends a{}
  class c extends a{}
  a p0=new a();
  b p1=new b();
  c p2=new c();
  a p3=new b();
  a p4=new c();
----
  A.  p1 = (b)p2
  B.  p3 = (a)p4
  C.  p3 = (b)p4
  d.  p0 = (a)p1
bcd
5. ÒÔÏÂÓÐÎÞÎÊÌâ
abstract class a{
    public void fo(){ system.out.println("a");}
}
ÎÞ  ³éÏóÀà¿ÉÒÔÓзdzéÏó·½·¨
6. ÒÔÏÂÓÐÎÞÎÊÌâ
abstract class b{
    static void f1(){ system.out.println("f1");}
    public static void main(String[] args){
          b b1=new b(); //³éÏóÀ಻ÄÜÓÐʵÀý
          b1.f1();
    }
}
7. ÒÔÏ´úÂëÔËÐнá¹ûÊÇ
  try{
      //´ËÐлáÅ׳öNullPointedException
  }
  catch(NullPointedExecption e){
      System.out.print("1")
  }
  catch(RuntimeExection e){


Ïà¹ØÎĵµ£º

JavaÊäÈëÊý¾ÝÁ÷Ïê½â


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

java»ñÈ¡µ±Ç°ÈÕÆÚµÄǰһÌìÈÕÆÚÓë×Ö·û´®ÈÕÆÚÖ®¼äµÄת»»

         Õ⼸ÌìÒ»Ö±ÔÚ´¦ÀíJavaµÄÈÕÆÚÎÊÌ⣬ͨ³£ÐèÒª°´ÒªÇóÉú³ÉÈÕÆÚµÄ»°£¬Í¨³£»áÓõ½util°üÖеÄCalendarÀ࣬ÔÙÓÃCalendarµÄgetTime()·½·¨Éú³É¶ÔÓ¦µÄDate£¬×îºóÓÃSimpleDateFormatÊä³ö¡£
 
1. »ñÈ¡µ±ÆÚÈÕÆÚ¡¢Äê·Ý¡¢Ô·Ý
import java.util.Calendar;
public clas ......

ת£ºjava ¿Ë¡

1£¬Ê²Ã´ÊÇClone £¿
¼òµ¥µØËµ£¬ Clone ¾ÍÊǶÔÓÚ¸ø¶¨µÄÒ»¸ö¶ÔÏóʵÀý o £¬µÃµ½ÁíÒ»¸ö¶ÔÏóʵÀý o’ £º o Óë o’ Àà
ÐÍÏàͬ£¨ o.getClass() == o’.getClass() £©£¬ÄÚÈÝÏàͬ£¨¶ÔÓÚ o/o’ ÖеÄ×Ö¶Î f £¬Èç¹û f ÊÇ»ù±¾Êý¾ÝÀàÐÍ£¬Ôò o.f == o’.f £»Èç¹û f ÊǶÔÏóÒýÓã¬Ôò o.f == o’.f »ò o.f Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ