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

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

            ÔÚ¿´µ½Thinking in java µÚËÄÕÂʱ³õʼ»¯Ïà¹ØÎÊÌâµÄʱºò£¬ÎÒÃDz»ÓɵذÑ×¢ÒâÁ¦ÒƵ½¹¹ÔìÆ÷ÉÏ¡£ÕâÀï×ö¸ö¼òµ¥µÄ×ܽᣬ±ãÓÚ¸ßÊÖÖ¸ÕýÒÔ¼°×Ô¼ºÎ¹ʡ£
      Ê×Ïȹ¹ÔìÆ÷ÊÇÒª¹¹ÔìÒ»¸ö¶«Î÷{¹¹Ôì¶ÔÏó£¨ÊµÀý£©}²¢¶ÔÆä³õʼ»¯¡£Ö®ËùÒԺܶà³ÌÐòÖÐûÓп´µ½Ëü£¬ÊÇÒòΪÔÚjava³ÌÐòÖÐÈç¹ûÄãû¶¨ÒåÈκι¹ÔìÆ÷£¬Ôò±àÒëÆ÷»á×Ô¶¯¸øÄã¼ÓÉÏĬÈϹ¹ÔìÆ÷£¨²»´øÈκβÎÊý£¬Ò²Ã»ÓГ·½·¨Ì唣©¡£ÌÈÈô×Ô¼º¶¨ÒåÁ˹¹Ôì·½·¨,±àÒëÆ÷½«²»ÔÙ×Ô¶¯Ìí¼Ó¡£¹¹ÔìÆ÷ÊÇ¿ÉÒÔÌṩºÜ¶à·½·¨£¬µ«Óë¹¹Ôì·½·¨ÓÖÓÐËù²»Í¬¡£ÈçRobert Nielsen Ëù˵£¬Õâ¹Øϵ¾ÍºÃËÆ°Ä´óÀûÑǵÄѼ×ìÊÞÊÇÒ»ÖÖ²¸Óý¶¯Îï¡££¨ÒªÀí½âѼ×ìÊÞ£¬ÄÇôÏȱØÐëÀí½âËüºÍÆäËû²¸Óý¶¯ÎïµÄÇø±ð¡££©
    Æä´Î¹¹ÔìÆ÷Óм¸µã¼òµ¥µÄÒªÇó£º
    a£¬¹¹ÔìÆ÷Ðè²ÉÓÃÓëÀàÃûÏàͬµÄÃû³Æ£¨´óСдҲҪһÖ£©£»
    b£¬¹¹ÔìÆ÷ûÓзµ»ØÖµ£¨Ò²ÎÞÐèÌí¼Óvoid£©£»
    c, ¹¹ÔìÆ÷ÐÞÊηû½öÓÐpublic£¬private¼°protectedÈý¸ö£»
    d£¬¹¹ÔìÆ÷Óë¹¹Ôì·½·¨´æÔÚ²»Í¬£¬Èç¹¹Ôì·½·¨²»½öÒª¸ø¶ÔÏóʵÀý±äÁ¿¸³Öµ£¬²¢ºÍnewÒ»Æð´´½¨¶ÔÏó¡£
    e£¬¸¸ÀàÖеĹ¹ÔìÆ÷²»Äܱ»¼Ì³Ð£¬¸¸ÀàÖеķ½·¨¿ÉÒԼ̳С£
    f£¬Í¬Ò»ÀàÖеĹ¹ÔìÆ÷¿ÉÒÔÖØÔØ¡£
    g£¬×ÓÀàÓ븸À๹ÔìÆ÷±àÒëʱ³£³ö´íµÄ¹Ø¼üÈçÏ£º
ÀýÒ»£º
class A {
   public A() {
      System.out.println("A");
    }
}
class B extends A{
   public B(String str) {
      System.out.println("B");
    }
}
class C extends B{
   public C(String str) {super(str);System.out.println("C String");
     }
   public C(int n) {System.out.println("C int");super("" + n);
     }
}
˵Ã÷£º
±àÒë´íÎ󣬵÷Óø¸ÀàµÄ¹¹ÔìÆ÷Óï¾äÓ¦¸ÃΪÀ๹ÔìÆ÷ÖеĵÚÒ»¸öÓï¾ä¡£
ÐÞ¸ÄΪ£ºpublic C(int n) {super("" + n);System.out.println("C int");}
ʹÓãºC c = new C(10); //Êä³ö£ºA B C
Àý¶þ£º
class TestSuper{
    TestSuper(int i){}   &nb


Ïà¹ØÎĵµ£º

Java¶àÏ̵߳ÄÏà¹Ø»úÖÆ[z]

 Ò» Ï̵߳Ļù±¾¸ÅÄî
Ïß³ÌÊÇÒ»¸ö³ÌÐòÄÚ²¿µÄ˳Ðò¿ØÖÆÁ÷.Ò»¸ö½ø³ÌÏ൱ÓÚÒ»¸öÈÎÎñ,Ò»¸öÏß³ÌÏ൱ÓÚÒ»¸öÈÎÎñÖеÄÒ»ÌõÖ´Ðз¾¶.£»¶à½ø³Ì:ÔÚ²Ù×÷ϵͳÖÐÄÜͬʱÔËÐжà¸öÈÎÎñ (³ÌÐò)£»¶àÏß³Ì:ÔÚͬһ¸öÓ¦ÓóÌÐòÖÐÓжà¸ö˳ÐòÁ÷ͬʱִÐУ»JavaµÄÏß³ÌÊÇͨ¹ýjava.lang.ThreadÀàÀ´ÊµÏֵģ»JVMÆô¶¯Ê±»áÓÐÒ»¸öÓÉÖ÷·½·¨(public static voi ......

Java SE 5·þÎñÖÜÆÚÒÑÖÕ½á

 ×ª×ÔInfoQ£¬×÷Õß Charles Humble ÒëÕß ÕÅÁú
±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾­µäÖ§³Ö£ ......

WindowsMobileϵͳ¹ÜÀíjava²å¼þ

       WindowsMobileϵͳÎÞ·¨Ö±½Ó¹ÜÀíJAVA²å¼þ£¬ÐèÒª½èÖúJAVAÐéÄâ»úÀ´¹ÜÀíJAVA²å¼þ£¬WMƽ̨³£¼ûµÄJAVAÐéÄâ»úÓÐJbedºÍJblend¡£ÏÂÃæ¾ÍWMƽ̨¹ÜÀíJAVA²å¼þ×ö¼òÒª½éÉÜ¡£
1¡¢Jbed
Esmertec¹«Ë¾µÄ²úÆ·£¬ÍⲿÃüÁî¹ÜÀí·½Ê½Îª£º
°²×°£º\Windows\jbed.exe -DFile.maxStorageSize=64M -ginstall \" ......

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");
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ