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

JAVA¾­µä»ù´¡ÎÊÌâÖ® ³éÏóÀàÓë½Ó¿Ú

Ò»¡¢³éÏóÀà×¢ÒâÊÂÏ
1£¬³éÏóÀàÖпÉÒÔÓÃ0+¸ö³éÏó·½·¨¡£
2£¬ÓгéÏó·½·¨µÄµÄÀà±ØÐëÊdzéÏóÀà¡£
3£¬³éÏóÀàÅÉÉúµÄ·Ç³éÏó×ÓÀà±ØÐëʵÏÖ³éÏóÀàÖж¨ÒåµÄËùÓгéÏó·½·¨¡£
4£¬³éÏóÀ಻ÄÜ´´½¨¶ÔÏó¡£
5£¬abstract ²»ÄÜÓëfinal²¢ÁÐÐÞÊÎͬһ¸öÀà
6£¬abstract²»ÄÜÓëprivate,static ,final,native²¢ÁÐÐÞÊÎͬһ·½·¨¡£
package com.wensefu.abstrator;
public abstract class AbParent {

protected int b;
public int c;
int d;
/*
* ³éÏóÀà¿ÉÒÔÓзdzéÏó·½·¨
*/
public void unabstract(){
System.out.println("parent unabstract");
}

/*
* ÓÉÓÚ×ÓÀà±ØÐëʵÏÖ³éÏó¸¸ÀàµÄ³éÏó·½·¨£¬¹Ê
* abstract ²»¿ÉÓëprivate,static,final,native²¢ÁÐÐÞÊÎͬһ¸ö·½·¨
* ³éÏóÀà·½·¨Ä¬ÈÏÐÞÊηûΪfriendly,¼´°ü¿É¼û
*/
//private abstract void abstr(); !error
public abstract void abstr();


}
package com.wensefu.abstrator.extend;
import com.wensefu.abstrator.AbParent;
public class AbChildExtend extends AbParent {
@Override
public void abstr() {
// TODO Auto-generated method stub
System.out.println("child abstr");
}

public static void main(String[] args) {

AbChildExtend a=new AbChildExtend();

a.b=1;
a.c=2;
a.abstr();
a.unabstract();
}
}
package com.wensefu.abstrator;
public abstract class Child extends AbParent {
public abstract void abstr();
public static void main(String[] args) {
System.out.println("³éÏóÀàµÄ³éÏó×ÓÀà¿ÉÒÔ²»ÊµÏÖ¸¸ÀàÖеijéÏó·½·¨");
}
}
¶þ¡¢½Ó¿Ú¡£
1£¬½Ó¿ÚµÄÐÞÊηûÓÐÁ½ÖÖ£ºpublic ºÍĬÈÏ¡£
2£¬½Ó¿ÚÖз½·¨µÄĬÈÏÐÞÊηûΪpublic abstract,½Ó¿ÚÖз½·¨µÄ·½·¨Ìå¿ÉÒÔÓÉjava±àд£¬Ò²¿ÉÓÉÆäËûÓïÑÔ±àд£¬ÓÉÆäËûÓïÑÔ±à дʱ£¬·½·¨ÐèÓÉnativeÐÞÊΡ£
3£¬½Ó¿ÚÖж¨ÒåµÄÊý¾Ý³ÉԱȫÊÇfinal static ,¼´³£Á¿¡£
4£¬½Ó¿ÚÖз½·¨È«Îª³éÏó·½·¨¡£
5£¬½Ó¿ÚÒà¾ßÓм̳ÐÐÔ£¬¿ÉÒÔͨ¹ýextendsÉùÃ÷¸Ã½Ó¿ÚµÄ¸¸½Ó¿Ú¡£
6£¬Èç¹ûʵÏָýӿڵÄÀ಻ÊdzéÏóÀ࣬Ôò¸ÃÀà±ØÐëʵÏÖ½Ó¿ÚµÄËùÓгéÏó·½·¨¡£ÇÒÓ¦¾ßÓÐÍêÈ«ÏàͬµÄ·µ»ØÖµºÍ²ÎÊýÁÐ±í¡£
7£¬ÈôʵÏÖij½Ó¿ÚµÄÀàΪ³éÏóÀ࣬Ôò¿ÉÒÔ²»ÊµÏָýӿڵÄËùÓз½·¨¡£
8£¬½Ó¿ÚµÄ³éÏó·½·¨¶¼ÒѾ­Ö¸¶¨Îªpublic ,ËùÒÔÀàÔÚʵÏÖ·½·¨Ê±£¬±ØÐëÏÔʽµØÊ¹


Ïà¹ØÎĵµ£º

ACMÖÐʹÓÃJAVAµÄ½éÉÜ


Chapter I.
JavaµÄÓÅȱµã¸÷ÖÖÊéÉ϶¼ÓУ¬ÕâÀïֻ˵˵ÓÃJava×öACM-ICPCµÄÌØµã£º
(1) ×îÃ÷ÏԵĺô¦ÊÇ£¬Ñ§»áJava£¬¿ÉÒԲμÓJava Challenge  
(2) ¶ÔÓÚÊìϤC/C++µÄ³ÌÐòÔ±À´Ëµ£¬Java ²¢²»ÄÑѧ£¬ÕÒ±¾Ê飬һÁ½ÖÜÒµÓàʱ¼ä¾Í¿ÉÒԸ㶨ÁË¡£µ±È»£¬ÕâÀïÖ»ÊÇÖ¸Ò»°ã±à³Ì£¬ÏëÊìϤËùÓеÄJava¿â»¹ÊÇÐèҪЩʱ¼äµÄ¡£ÊÂʵÉÏ£¬Java Ö ......

java»·¾³±äÁ¿ÅäÖÃ

windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
      3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“»·¾³±äÁ¿”£»
  &nb ......

thinking in java ѧϰ±Ê¼Ç£¨Ò»£© ½Ó¿ÚÓÚ¶àÖØ¼Ì³Ð






<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in }
PRE.western { font-family: "Nimbus Roman No9 L" }
PRE.cjk { font-family: "Nimbus Roman No9 L" }
H1 { margin-bottom: 0.08in }
H1.western { font-family: "Nimbus Sans L", sans-ser ......

Java³õʼ»¯Ë³Ðò

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
 class
 InitialOrderTest {   
  
    //&nb ......

·ÖÎöjava dumpÎļþ

 
×¢Ò⣬Çë²»Òª±»ÎÒÎóµ¼£¬ÎÒûÓп´ÆäËû×ÊÁÏ£¬ÕâÊÇÎÒ×Ô¼º·ÖÎöµÄ£¬ÓÐЩ¿ÉÄÜÊDz»¶ÔµÄ
 
"DestroyJavaVM" prio=6 tid=0x00316800 nid=0x448 waiting on condition [0x00000000
..0x00a0fd4c]
   java.lang.Thread.State: RUNNABLE
 
"Thread-1" prio=6 tid=0x02f85000 nid=0xd18 waiting for m ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ