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

this ÓësuperÔÚjavaÖÐÔËÓÃÕûºÏ


 A.ʹÓùؼü×ÖthisµÄ×¼Ôò£º
1.ÔÚ¹¹ÔìÆ÷ÖУ¬Èç¹ûҪʹÓùؼü×Öthis,ÄÇô£¬±ØÐë·ÅÔÚµÚÒ»ÐУ¬·ñÔò½«µ¼ÖÂÒ»¸ö±àÒë´íÎó¡£
2.¹¹Ôì·½·¨ÒýÓÃthisÖ¸ÏòÕýÔÚÖ´Ðз½·¨µÄÀàµÄʵÀý¡£¾²Ì¬·½·¨²»ÄÜʹÓÃthis¹Ø¼ü×Ö£¬ÒòΪ¾²Ì¬·½·¨²»ÊôÓÚÀàµÄʵÀý£¬ËùÒÔthisÒ²¾ÍûÓÐʲô¶«Î÷È¥Ö¸Ïò¡£¹¹ÔìÆ÷µÄthisÖ¸Ïòͬһ¸öÀàÖУ¬²»Í¬²ÎÊýÁбíµÄÁíÍâÒ»¸ö¹¹ÔìÆ÷£¬ÎÒÃÇ¿´¿´ÏÂÃæµÄ´úÂ룺 
public class Platypus {
String name;
Platypus(String input) {
   name = input;
   }
Platypus() {
   this("John/Mary Doe");
   }
public static void main(String args[]) {
   Platypus p1 = new Platypus("digger");
      Platypus p2 = new Platypus();
    }
}
    ÔÚÉÏÃæµÄ´úÂëÖУ¬ÓÐ2¸ö²»Í¬²ÎÊýÁбíµÄ¹¹ÔìÆ÷¡£µÚÒ»¸ö¹¹ÔìÆ÷£¬¸øÀàµÄ³ÉÔ±name¸³Öµ£¬µÚ¶þ¸ö¹¹ÔìÆ÷£¬µ÷ÓõÚÒ»¸ö¹¹ÔìÆ÷£¬¸ø³ÉÔ±±äÁ¿nameÒ»¸ö³õʼֵ "John/Mary Doe".
×¢Ò⣺¾¡¹Ü¿ÉÒÔÓÃthisµ÷ÓÃÒ»¸ö¹¹ÔìÆ÷£¬µ«È´²»Äܵ÷ÓÃÁ½¸ö¡£´ËÍ⣬±ØÐ뽫¹¹ÔìÆ÷µ÷ÓÃÖÃÓÚ×îÆðʼλÖ㬷ñÔò±àÒë»á³ö´í¡£
B.ʹÓÃsuperʱµÄ×¼Ôò£º
1.¹¹ÔìÆ÷ʹÓÃsuperÈ¥µ÷Óó¬ÀàÖеĹ¹ÔìÆ÷¡£¶øÇÒÕâÐдúÂë±ØÐë·ÅÔÚµÚÒ»ÐУ¬·ñÔò±àÒ뽫³ö´í¡£
2.ÎÞÂÛ¹¹ÔìÆ÷ºÍ·½·¨£¬¶¼Óùؼü×ÖsuperÖ¸Ïò³¬À࣬µ«ÊÇÓõķ½·¨²»Ò»Ñù¡£·½·¨ÓÃÕâ¸ö¹Ø¼ü×ÖÈ¥Ö´Ðб»ÖØÔصij¬ÀàÖеķ½·¨¡£
class Mammal1{
     void getBirthInfo() {
        System.out.println("born alive.");
   }
}
class Platypus2 extends Mammal {
    void getBirthInfo() {
       System.out.println("hatch from eggs");
       System.out.print("a mammal normally is ");
        super.getBirthInfo();
   }
}
public class TestMammal{ 
   public static void main(String[] args){
      Platypus2 pl = new Platypus2();
   }
}
 
ÈýÖÖÇé¿ö˵Ã÷£º
1¡¢¸¸ÀàÖÐûÓÐÏÔʽ¶¨ÒåÈκι¹Ôì·½·¨£¬´Ëʱ¸¸ÀàÖÐʵ¼ÊÓÐÒ»¸öĬÈϵÄÎÞ²ÎÊý¹¹Ôì·½·¨¡£Õâʱ£¬ÔÚ×ÓÀàÖÐÏÔʽ¶¨ÒåÈκι¹Ô


Ïà¹ØÎĵµ£º

javaµÄ·¢Õ¹ÀúÊ·

 
1995Äê5ÔÂ23ÈÕ£¬JavaÓïÑÔµ®Éú
1996Äê1Ô£¬µÚÒ»¸öJDK-JDK1.0µ®Éú
1996Äê4Ô£¬10¸ö×îÖ÷ÒªµÄ²Ù×÷ϵͳ¹©Ó¦ÉÌÉêÃ÷½«ÔÚÆä²úÆ·ÖÐǶÈëJAVA¼¼Êõ
1996Äê9Ô£¬Ô¼8.3Íò¸öÍøÒ³Ó¦ÓÃÁËJAVA¼¼ÊõÀ´ÖÆ×÷
1997Äê2ÔÂ18ÈÕ£¬JDK1.1·¢²¼
1997Äê4ÔÂ2ÈÕ£¬JavaOne»áÒéÕÙ¿ª£¬²ÎÓëÕßÓâÒ»ÍòÈË£¬´´µ±Ê±È«ÇòͬÀà»áÒé¹æÄ£Ö®¼Í¼
1997Äê9 ......

JAVA·ÃÎÊfirebirdÊý¾Ý¿âÖ®Jaybird

 
¹ØÓÚJaybird-2.1.6JDK_1.5µÄʹÓ÷½·¨ÈçÏ£º
Ê×ÏÈ£º°²×°Jaybird
µÚÒ»²½£º½«¸ùĿ¼ÏµÄ
       jaybird21.dll,
       GDS32.DLL,
       icudt30.dll,
       icuuc30.dll,
&nbs ......

JavaÏà¶Ô·¾¶/¾ø¶Ô·¾¶×Ü½á £¨×ª£©

1.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖУ¬ ......

java Ê÷½á¹¹´úÂë

 public class TreeNodes{
  IList<BranchInfo> branchs = BranchInfoManager.getAllBranchInfos();
  foreach(BranchInfo branch in branchs){
    TreeNode branchNode = new TreeNodeCreate(branch.BranchName,branch.BranchId.toString(),"","~/Images/menuclose.gif");
  ......

javaÖÐÉæ¼°¹¹ÔìÆ÷µÄÏà¹ØÎÊÌâ

            ÔÚ¿´µ½Thinking in java µÚËÄÕÂʱ³õʼ»¯Ïà¹ØÎÊÌâµÄʱºò£¬ÎÒÃDz»ÓɵذÑ×¢ÒâÁ¦ÒƵ½¹¹ÔìÆ÷ÉÏ¡£ÕâÀï×ö¸ö¼òµ¥µÄ×ܽᣬ±ãÓÚ¸ßÊÖÖ¸ÕýÒÔ¼°×Ô¼ºÎ¹ʡ£
      Ê×Ïȹ¹ÔìÆ÷ÊÇÒª¹¹ÔìÒ»¸ö¶«Î÷{¹¹Ôì¶ÔÏó£¨ÊµÀý£©}²¢¶ÔÆä³õʼ»¯¡£Ö®ËùÒÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ