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

java ¼Ì³ÐÖеĹ¹Ôì·½·¨


²Î¿¼´úÂë:
class SuperClass {
private int n;

SuperClass() {
System.out.println("SuperClass()");
}

SuperClass(int n) {
System.out.println("SuperClass(" + n + ")");
this.n = n;
}
}
class SubClass extends SuperClass {
private int n;

SubClass() {
//super();//¸¸À๹Ôì·½·¨±ØÐë·ÅÔÚ×ÓÀ๹Ôì·½·¨µÚÒ»ÐÐ
System.out.println("SubClass()");
}

SubClass(int n) {
//super(n);//ÇÒÈç¹û×ÓÀ๹Ôì·½·¨ÖÐûÓÐÏÔʾµ÷Óø¸À๹Ôì·½·¨,Õß×Ô¶¯µ÷Óø¸ÀàµÄÎ޲ι¹Ôì·½·¨.Èô¸¸ÀàÎÞÎ޲ι¹Ôì·½·¨,Ôò±àÒë³ö´í.
System.out.println("SubClass(" + n + ")");
this.n = n;
}
}
public class TestSuperSub {
public static void main(String arg[]) {
SubClass sc1 = new SubClass();
SubClass sc2 = new SubClass(400);
}
}


Ïà¹ØÎĵµ£º

Java 7£º×îÐÂÌØÐÔ¡¢´úÂëʾÀý¼°ÐÔÄܲâÊÔ

Èç¹û˵½ñÄêJava¿ª·¢Æ½Ì¨ÓÐʲô´óʶù£¬ÄǾÍÒªÊý½«ÓÚÄêµ×·¢²¼µÄJava 7ÁË¡£½øÈë2010Ä꣬Java 7ÓÐÄÄЩеĽøÕ¹?ÕâЩеÄÌØÐÔ¸üжÔÎÒÃÇÓÐÄÄЩºÃ´¦?¸ÃÈçºÎʹÓÃ?Java 7µÄÐÔÄÜÈçºÎ?±¾ÎĽ«¸øÄã´ð°¸¡£
ÕâÀïµÄÄÚÈÝÖ÷Òª°üÀ¨Æä×î иüС¢Ò»Ð©´úÂëʵÀý¡¢¸úÒÔÇ°°æ±¾µÄJava½øÐÐÐÔÄܱȽÏÐèÒª²Î¿¼µÄһЩ»ù×¼¡¢ÒÔ¼°Ê²Ã´Ê±ºòËü²Å»á·¢²¼µÈÐÅÏ ......

JAVAÖеÄλÒƲÙ×÷ >> >>

ÖÐС
JavaÖй²ÓÐÈý¸öÒÆλ²Ù×÷·û£¬·Ö±ðÊÇ£º
<<£º×óÒƲÙ×÷£¬ËùÓвÙ×÷ÊýÏò×óÒƶ¯£¬Ã¿ÒÆһλ×îÓÒ±ßÓÃ0²¹³ä
>>£º´ø·ûºÅλÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓ÷ûºÅλ²¹³ä
>>>£ºÎÞ·ûºÅÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓÃ0²¹³ä
ÒÆλ²Ù×÷·ûÖ»ÄÜ×÷ÓÃÓÚÕûÊýÀàÐÍ£¬¼´byte£¬short£¬char£¬i ......

java jar°ü´ò°üÃüÁî

jar -cvf  name.jar *.*(´ò°ü´ËĿ¼ÏÂËùÓÐÎļþ)
jar -cvf  name.jar  filename(´ò°ü´ËĿ¼Ïµ¥¸öÎļþhelloWorld.java»òÎļþ¼Ð)
jar -cvf name.jar filename1  filename2....(´ò°ü´ËĿ¼Ï¶à¸öÎļþ»òÎļþ¼Ð)
²Î¿¼: jar ......

£¨×ª£©javaÓëflexͨÐÅ

  £¨×ª£©javaÓëflexͨÐÅ
Ò»¡¢×¼±¸£º
·þÎñ¶Ë£ºJDK1.5 £¨Õâ¸ö²»ÓýéÉÜÁË°É£¿£©
·þÎñ¶ËIDE£ºeclipse £¨ËüµÄÖ÷Ò³£©
¿Í»§¶Ë£ºFLEX 3 £¨Adobe&reg; Flex&reg; 3 ÊÇÓÃÓÚ¹¹½¨ºÍά»¤ÔÚËùÓÐÖ÷Òªä¯ÀÀÆ÷¡¢×ÀÃæºÍ²Ù×÷ϵͳһÖµز¿ÊðµÄ¼«¾ß±íÏÖÁ¦µÄ Web Ó¦ÓóÌÐòµÄ¸ßЧÂʵĿª·ÅÔ´Âë¿ò¼Ü¡££©
¿Í»§¶ËIDE£ºFlex Builder 3 ......

java Àà±àÒëÁ÷³Ì

1.´úÂëµÄ×°Èë
2.´úÂëµÄУÑé
3.ºÍ´úÂëµÄÖ´ÐÐ
Ìå»á£º dao²ã ·½·¨Ãû Ð޸ĺó µ÷ÓÃÆäµÄ services ¡£action ¶¼½«±»ÖØР±àÒë¡£
--- »ù±¾ÀàÐÍʹÓà £º
Ìå»á£ºdao²ã »ù±¾ÀàÐÍ ¾¡Á¿Ê¹ÓöÔÏóÀàÐÍ£¬ÒÔΪ »ù±¾ÀàÐÍ ÄÜ×Ô¶¯ÀàÐÍÌáÉý ¶ø¶ÔÏóÀàÐ͠Ϊ null Ö÷¶¯ÀàÐÍת»» »á±¨´í£ºNullPointerException
 Ð¡ÐÄ ÀàÐÍÖ÷¶¯ÌáÉý &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ