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
Ïà¹ØÎĵµ£º
ת×Ô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¾µäÖ§³Ö£ ......
1¡¢½ø³ÌÓëỊ̈߳º
¡¶1¡·Ê²Ã´Êǽø³Ì£ºÊÇÖ¸ÔËÐÐÖеÄÓ¦ÓóÌÐò£¬Ã¿Ò»¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÄÚ´æ¿Õ¼ä£¬
Ò»¸öÓ¦ÓóÌÐò¿ÉÒÔͬʱÆô¶¯¶à¸ö½ø³Ì£¬(¾²Ì¬)±ÈÈ磨IE£¬JVM£©
¡¶2¡·Ê²Ã´ÊÇỊ̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬ ......
1.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖУ¬ ......
×î½üѧϰjavaÓõ½ÁËJList,¶ÔÓÚÏòJListÖÐÌí¼ÓÊý¾Ý£¬À§ÈÅÁ˺þã¬ÉÏÍø²é¸øµÄ´ð°¸¶¼Ã»¸öºÏÊʵģ¬ÎÊÁËÀÏʦ²ÅŪÃ÷°×Щ£¬×ܽáÈçÏ£º
1.ʹÓÃVector£ºÊ×ÏȰÑÄãµÄÊý¾ÝÏî¶¼´æ·ÅÔÚVectorÖУ¬È»ºóµ÷ÓÃJListµÄsetListData()·½·¨£¬½«VectorÌí¼Óµ½JListÖÐ
Vector vt=new Vector();
JList list=new JLis ......
ת×Ôhttp://www.cnblogs.com/liwp_stephen/archive/2008/08/03/1259385.html£¬·Ç³£¸Ðл×÷ÕߵķÖÏí
ʹÓÃAxis±àдWebService±È½Ï¼òµ¥£¬¾ÍÎÒµÄÀí½â£¬WebServiceµÄʵÏÖ´úÂëºÍ±àдJava´úÂëÆäʵûÓÐÊ²Ã´Çø±ð£¬Ö÷ÒªÊǽ«ÄÄЩJavaÀà·¢²¼ÎªWebService¡£ÏÂÃæÊÇÒ»¸ö´Ó±àд²âÊÔÀý× ......