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

javaÖеļ̳У¨×ÓÀàµ÷Óø¸À๹Ôì·½·¨»¹²»¶®£©

declarations  n. ÉùÃ÷
extends  v. ¼Ì³Ð
¼Ì³ÐÖÐ×¢ÒâµÄÎÊÌ⣺
1  ÖØÐ´(Ò²½Ð¸²¸Ç£¬Ò²½ÐÖØ¹¹)£ºÖØÐ´·½·¨±ØÐëºÍ±»ÖØÐ´·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ¡¢²ÎÊýÁбíºÍ·µ»ØÖµÀàÐÍ£»
            ÖØÐ´·½·¨²»ÄÜʹÓñȱ»ÖØÐ´·½·¨¸üÑϸñµÄ·ÃÎÊȨÏÞ¡£
ÖØÐ´ÊÇÀàÓëÀàÖ®¼äµÄ¹ØÏµ£¬Á½Õß±ØÐëÊǼ̳йØÏµ¡£ÖØÔØÊÇ·½·¨Óë·½·¨Ö®¼äµÄ¹ØÏµ¡£
2  ¹Ø¼ü×Ösuper£º
    ÔÚJavaÀàÖÐʹÓÃsuperÀ´ÒýÓø¸ÀàµÄ³É·Ö
    super¿ÉÓÃÓÚ·ÃÎʸ¸ÀàÖж¨ÒåµÄÊôÐÔ
    super¿ÉÓÃÓÚµ÷Óø¸ÀàÖж¨ÒåµÄ³ÉÔ±·½·¨
    super¿ÉÓÃÓÚÔÚ×ÓÀ๹Ôì·½·¨Öе÷Óø¸ÀàµÄ¹¹Ôì·½·¨
    superµÄ×·Ëݲ»½öÓÚÖ±½Ó¸¸À࣬¾ÍÊÇfatherµÄfather¡£¡£¡£¡£¡£¡£
Supper¹Ø¼ü×ÖÓÐÁ½¸öÌØÊâµÄÓÃ;£º
    ÔÚ×ÓÀ๹Ô캯ÊýÖе÷Óø¸ÀàµÄ¹¹Ô캯Êý
    ÔÚ×ÓÀàÖе÷Óø¸ÀàµÄ·½·¨¡£
3  ¶à̬£º¶à̬¾ÍÊÇÖØÐ´ºÍÖØÔØ£¡¶øÉÏËÜÔìÐÍ»òÐé·½·¨µÄµ÷ÓøüºÃµÄÌåÏÖÁ˶à̬¡£
             ÉÏËÝÔìÐÍ(Ò²½ÐÐé·½·¨)ÖУ¬·½·¨Êǵ÷ÓÃ×ÓÀà×Ô¼ºµÄ£¬ÊôÐÔÊǵ÷Óø¸ÀàµÄ¡£(Ò»¸öÒýÓÃÀàÐͱäÁ¿Èç¹ûÉùÃ÷Ϊ¸¸ÀàµÄÀàÐÍ£¬
             µ«Êµ¼ÊÒýÓõÄÊÇ×ÓÀà¶ÔÏó£¬ÄÇô¸Ã±äÁ¿¾Í²»ÄÜÔÙ·ÃÎÊ×ÓÀàÖÐÌí¼ÓµÄÊôÐԺͷ½·¨)
public class Father {   
    public String name = "Íõ»Ý";
    public void bidBoy(){
        System.out.println("½ñÌìÎÒÒªÊDz»´òÄ㣬ÎҾͲ»ÊÇÄãÄ£¡£¡");   
    }
}
public class Son1 extends Father{
    public String name1 = "ÍõÅôµÄ½ã½ã";
    public String name = "ÕÅÈýÈý";
    public void bidBoy(){   //ÖØÐ´
        System.out.println("ÎÒ×ö´íÁËʲô£¿ÎªÊ²Ã´ÄãÒª´òÎÒ£¡£¡£¡");
        System.out.println(super.name);
        System.out.println(name);//Èç¹û×ÓÀàûÓÐn


Ïà¹ØÎĵµ£º

Java NIO APIÏê½â

 
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔǰ£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......

java¹¹Ô캯Êý

java¹¹Ô캯Êý
ÆäÓï·¨¸ñʽÈçÏ£º
   < modifiers>  <class_name>([< argu_list>]) {[< statements>]}
×Ô¶¨Òå¹¹Ôì·½·¨£º·½·¨ÃûÓëÀàͬÃû£¬Ê××Öĸ´óд£¡Ã»Óзµ»ØÀàÐÍ¡£³ý´ËÖ®ÍâÆäËû¶¼¸úÆÕͨ·½·¨Ò»Ñù¡£
ĬÈϹ¹Ô캯Êý£ºÃ»ÓÐÐβÎûÓз½·¨Ì壡È磺public Person() {}
¶ÁÏÂÃæµÄÀý×Ó£¬Ìå ......

±Ø±¸µÄ Java ²Î¿¼×ÊÔ´Áбí

×Ô java ƽ̨´Ó 1995 Äê×÷Ϊһ¸öÕûÌåÒýÈë±à³ÌÉçÇø¿ªÊ¼£¬ËüµÄ·¢Õ¹ÒѾ­Ô¶Ô¶³¬³öÁËÔçÆÚ java ר¼ÒºÍÍÆ½éÕßËùÉèÏëµÄ“applet ÎÞ´¦²»ÔÚ”ÕâÒ»Ô¶¾°¡£Ïà·´£¬java ÊÀ½ç³öÏÖÁË Swing¡¢Óë servlet ½áºÏ£¬´Ó¶ø·¢Õ¹Îª J2EE¡¢³öÏÖÁË EJB¡¢³¬Ô½ÁË Spring ºÍ Hibernate¡¢Ìí¼ÓÁË·ºÐÍ£¬±äµÃÔ½À´Ô½¾ßÓж¯Ì¬ÐÔ£¬È»ºóʵÏÖÁ˺¯Êý»¯£¬ÔÚ ......

JAVAÅàѵ¸ÐÎò

   2009Äê7ÔÂÎҲμÓÁËÒ»¸öJAVAרҵ»ú¹¹µÄÅàѵ£¬Ö®ËùÒԲμÓÕâ¸öÅàѵ£¬ÎÒÊÇΪÁ˽øÒ»²½ÌáÉý×Ô¼ºµÄ¼¼Êõ£¬ÁíÒ»·½ÃæÎÒÒ²±È½Ïϲ»¶JAVA£¬Ï£ÍûËüÄܳÆÎªÎҵļ¼ÊõÖ÷Á¦¡£×ªÑÛ£¬Åàѵ¾Í¿ì½áÊøÁË£¬ÐÄÖиÐÎòÁ¼¶à£¬Ï£ÍûÓë¾ý¹²Ãã¡£
   ÎÒËù²Î¼ÓµÄÅàѵ»ú¹¹Ö»ÓÐÒ»¸öÀÏʦ£¬²»ÏñºÜ¶àµØ·½ÓкöàµÄÀÏʦ£¬Ã¿Ììÿһ½Ú¿Î¶¼ÊÇËûÀ´¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ