JavaÖ®¸¸James Gosling̸¼ÆËã»ú±à³ÌÒÕÊõ
2002Ä꣬ÖøÃûµÄ”Java2ÐéÄâ»úÄÚÄ»”×÷Õ߶ÔJavaÖ®¸¸Õ²Ä·Ë¹·¸ß˹ÁÖ½øÐÐÁË·Ã̸£¬Ì¸»°ÖУ¬¸ß˹ÁÖ¾ÍÈí¼þÉè¼ÆµÄ¸´ÔÓÐÔºÍËã·¨·¢±íÁËËûµÄһЩ¿´·¨¡£¶ÔÓÐÖ¾ÓÚ´ÓÊÂITÈí¼þÐÐÒµµÄͯЬÀ´Ëµ£¬ÌýÌýר¼ÒµÄÒâ¼û£¬Ó¦¸Ã»¹ÊDz»ÎÞñÔÒæµÄ¡£
JavaÖ®¸¸James Gosling
2002Äê3ÔÂ22ÈÕ£¬Bill Venners²É·ÃÁËJavaÖ®¸¸£¬Ì¸ÂÛÁËÓйØÆóÒµÈí¼þ,Ëã·¨£¬Óû§½çÃæÓѺÃÈí¼þµÈ»°Ìâ¡£ÒÔÏÂΪȫÎÄ£º
James Gosling²»ÔÚ²¼µÀJavaÓïÑÔµÄʱºò£¬Í¨³£¶ãÔÚSunʵÑéÊÒµÄÒ»¸ö°²¾²½ÇÂ䣬һÁ¬ºÃ¼¸Ì춼ÔÚ˼Ë÷һЩз½Ê½£¬ÒÔÐÖú³ÌÐòÔ±¸üºÃµØ´¦Àí³ÌÐòµÄ¸´ÔÓÐÔ¡£ ËûµÄÊé¼ÜÉÏ»¹¹Ò×ÅÒ»¸öÀïµÄ²©¸ñÈËÃæ¾ß£¬ÉÏ´ÎJavaOneÑݽ²ÖÐËû¾Í´øÔÚÁ³ÉÏ£¬ÔÚÃæ¾ßµÄµÍ´¹×¢ÊÓÏ£¬Ëû¶ÔBill Venners¿î¿îµÀÀ´£¬»°ÌâÉæ¼°µ±Ç°µÄ±à³ÌÇ÷ÊÆ£¬ÒÔ¼°¶ÔÈí¼þϵͳÉè¼ÆºÍ¹¹½¨µÄ¿´·¨¡£
ÆóÒµ±à³ÌºÍÉ豸±à³Ì£¨Enterprise vs. devices£©
Bill Venners: JavaÔÚÄÇô¶àµÄÊÖ»úºÍÖÇÄÜ¿¨ÉÏÆÕ¼°£¬¿ÉÊÇΪʲô´ó¶àÊý¶¼ÔÚÓÃJava±àд·þÎñÆ÷¶ËµÄ³ÌÐò?
James Gosling: ÎÒ¾õµÃÕâÊDZ±ÃÀÖÐÐÄÂÛÕߵĹ۵ã. ÄãÒªÊDzμӱ±ÃÀµÄ»áÒ飬´¦´¦¿ÉÎÅÈËÃÇÔÚÌÖÂÛÆóÒµÈí¼þ¡£¿ÉÊÇÎÒ×î½üÈ¥²Î¼ÓÅ·ÖÞºÍÈÕ±¾µÄһЩJava»áÒ飬ûÓÐÈËÌÖÂÛÆóÒµÈí¼þ¡£
Venners: ÄÇËûÃÇÔÚÓÃJava×öʲô?
Gosling: ËûÃǹØ×¢É豸£¬ÊÖ»úÉϵıà³Ì£¬ÒÔ¼°ÈçºÎʵÏֶ˵½¶Ëϵͳ¡£Èç¹û±±ÃÀµÄ¼ÇÕßÓлú»áÈ¥ÈÕ±¾×î½üµÄJavaOne»áÒéµÄ»°£¬Ò»¶¨»á´ó¿ªÑ۽磬ÔÚÄÇÀ»ù±¾ÉÏûÆóÒµ Èí¼þʲôʶù¡£µ½´¦¶¼ÊÇǶÈëʽϵͳ£¬ÊµÊ±ÏµÍ³£¬ÓÐЩÉÔÏÔ±¿×¾£¬ÓÐЩȴʮ·Ö¾«Ãî¡£ËûÃÇʹÓÃJava,ÈüÆËãÎÞ´¦²»ÔÚ¡£
ÆóÒµÈí¼þµ±È»ÓÐÆ侫ËèÖ®´¦£¬µ«Êdzý·ÇºÍ±ðµÄÁìÓòÕ´±ß£¬·ñÔòºÁÎÞÒâÒå¡£ÆóÒµÈí¼þÒѾ±»±ßÔµ»¯ÁË£¬ÒªÏëÓÐËùÒâÒ壬µÃÓж˵½¶ËµÄ˼Ïë¡£
¼ÆËã»ú±à³ÌÒÕÊõ £¨The art of computer programming£©
Venners: ×î½üÎÒ·ÁË·ÌÆÄɵµļÆËã»ú±à³ÌÒÕÊõ£¬ÄÇÌ×Êé³¾·âÒѾã¬Ö÷Òª½²µÃ¶¼ÊÇËã·¨. ¿ÉÊÇÔÚÎÒÒ»ÉúµÄITÊÂÒµÖУ¬Ã²ËƺÜÉÙÓõ½ÕâЩ¼èÉîµÄË㷨֪ʶ¡£Äã¾õµÃ±à³ÌÊÇÒ»ÖÖÒÕÊõÂ𣿻òÕß˵£¬×Ô´ÓÉÏÊÀ¼Í60Äê´úºÍ70Äê´úÒÔÀ´£¬ÎÒÃÇËùÀí½âµÄËã·¨¸ÅÄîÒѾÓÐËù¸Ä±ä?
Gosling: ²»¹ÜÄãÔÚд´úÂëʱÓÐûÓÐÓõ½Ëã·¨£¬²»¿É·ñÈϵÄÊÇ£¬¼ÆËã»ú±à³ÌȷʵÊÇÒ»ÃÅÒÕÊõ¡£µ±ÓÐÐÔÄÜÆ¿¾±ÐèÒª½â¾öʱ£¬Ðí¶àÈËÊøÊÖÎ޲ߣ¬ºÁÎÞ°ì·¨£¬ËûÃDz»Àí½âËã·¨ÐÔÄܵľßÌ庬Ò壬ËûÃDz»¶®ÈçºÎ¶¨Á¿µØÈ¥·ÖÎöËã·¨¸´ÔӶȡ£
ºÜÉÙÓÐÈËÎÊ:”ÔõÑùÌá¸ß³ÌÐòµÄÔËÐÐËÙÂÊÄØ”¡£ÂëÅ©ÃÇ×Üϲ»¶µ÷ÓÃÏֳɵÄAPIsº¯Êý£¬·â×°ÁËÒ»²ãÓÖÒ»²ã¡£ÓÐʱÄã»á¿´µ½Éî´ï10²ãÉõÖÁ100²ãµÄµ÷ÓÃ¶Ñ Õ»£¬²»Óɵغô½ÐÆð
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
ÌâÄ¿£ºÇëÓöàÏß³ÌʵÏÖÒ»¸öÉú²úÕßÀàºÍÒ»¸öÏû·ÑÕßÀ࣬Éú²úÕßËæ»úÉú³É20¸ö×Ö·û£¬Ïû·ÑÕß½«×Ö·û´òÓ¡µ½¿ØÖÆ̨¡£
class SyncStack{ //ͬ²½¶ÑÕ»Àà
¡¡¡¡¡¡private int index = 0; //¶ÑÕ»Ö¸Õë³õʼֵΪ0
¡¡¡¡¡¡private char []buffer = new char[6]; //¶ÑÕ»ÓÐ6¸ö×Ö·ûµÄ¿Õ¼ä
¡¡¡¡¡¡public synchronized void push(char c){ //¼ÓÉ ......
½ñÌìһͬѧ×ö¶«Î÷ÒªÓÃÕâ¸ö¶«¶«,¾Í°ïËûдÁËÒ»¸ö,ÏÈת»¯³Éºó׺±í´ïʽ,È»ºóÔÙ
¼ÆËã.µ±È»Ò²¿ÉÒÔÖ±½Ó¼ÆËãÖÐ׺±í´ïʽ,¿¼Âǵ½Òª¶àλÊý,¾ÍûÄÇô×ö.
Ö§³Ö¶àλÊýµÄ´øÀ¨ºÅµÄÕûÊýµÄ¼Ó¼õ³Ë³ý.
Java
´úÂë
package
edu.jlu.fuliang;
import
java
.util.ArrayList;
import
......
¼ÇµÃ²¿ÃÅÀÏ´óÔø¾Ëµ¹ý£¬javaµÄÀ¬»ø»ØÊÕ»úÖƶÔÓÚjavaÌåϵ½á¹¹µÄѧϰ·Ç³£ÖØÒª¡£ÕâÀォÔĶÁµÄһЩÎÄÏ×ÕûÀí×ܽá³öÀ´£¬¼ÇÊöjavaµÄ¼¸ÖÖÀ¬»ø»ØÊÕËã·¨¡£
À¬»ø»ØÊÕËã·¨ÓÐÁ½¸ö»ù±¾µÄÎÊÌ⣺1.±ØÐë¼ì²âµ½À¬»ø¶ÔÏó¡£2.±ØÐëÖØÐÂÉùÃ÷±»À¬»ø¶ÔÏóÕ¼ÓõĶѿռ䲢ÇÒÈöѿռä¿ÉÓá£
¿É´ïÐÔ ......
==========================================
xmlÎļþ
£¼?xml version="1.0" encoding="GB2312"?£¾
£¼RESULT£¾
£¼VALUE£¾
¡¡¡¡ £¼NO£¾A1234£¼/NO£¾
¡¡¡¡ £¼ADDR£¾ËÄ´¨Ê¡XXÏØXXÕòXX·X¶ÎXXºÅ£¼/ADDR£¾
£¼/VALUE£¾
£¼VALUE£¾
¡¡¡¡ £¼NO£¾B1234£¼/NO£¾
¡¡ ¡¡£¼ADDR£¾ËÄ´¨Ê¡XXÊÐXXÏçXX ......