JavaÎÊÌâ¾µä32ÎÊ
JavaÎÊÌâ¾µä32ÎÊ
µÚÒ»£¬Ì¸Ì¸final£¬ finally£¬ finalizeµÄÇø±ð¡£
µÚ¶þ£¬Anonymous Inner Class £¨ÄäÃûÄÚ²¿Àࣩ ÊÇ·ñ¿ÉÒÔextends£¨¼Ì³Ð£©ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements£¨ÊµÏÖ£©interface£¨½Ó¿Ú£©£¿
µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ£¨ÃæÊÔÌâÓеĺÜÁýͳ£©¡£
µÚËÄ£¬&ºÍ&&µÄÇø±ð¡£
µÚÎ壬HashMapºÍHashtableµÄÇø±ð¡£
µÚÁù£¬Collection ºÍ CollectionsµÄÇø±ð¡£
µÚÆߣ¬Ê²Ã´Ê±ºòÓÃassert.
µÚ°Ë£¬GCÊÇʲô£¿ ΪʲôҪÓÐGC£¿
µÚ¾Å£¬String s = new String£¨"xyz"£©£»´´½¨Á˼¸¸öString Object£¿
µÚÊ®£¬Math.round£¨11.5£©µÈ춶àÉÙ£¿ Math.round£¨-11.5£©µÈ춶àÉÙ£¿
µÚʮһ£¬short s1 = 1£» s1 = s1 + 1£»ÓÐʲô´í£¿ short s1 = 1£» s1 += 1£»ÓÐʲô´í£¿
µÚÊ®¶þ£¬sleep£¨£© ºÍ wait£¨£© ÓÐʲôÇø±ð£¿
µÚÊ®Èý£¬JavaÓÐûÓÐgoto£¿
µÚÊ®ËÄ£¬Êý×éÓÐûÓÐlength£¨£©Õâ¸ö·½·¨£¿ StringÓÐûÓÐlength£¨£©Õâ¸ö·½·¨£¿
µÚÊ®Î壬OverloadºÍOverrideµÄÇø±ð¡£OverloadedµÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ£¿
µÚÊ®Áù£¬SetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ£¿ ÊÇÓÃ==»¹ÊÇequals£¨£©£¿ ËüÃÇÓкÎÇø±ð£¿
µÚÊ®Æߣ¬¸øÎÒÒ»¸öÄã×î³£¼ûµ½µÄruntime exception.
µÚÊ®°Ë£¬errorºÍexceptionÓÐʲôÇø±ð£¿
µÚÊ®¾Å£¬List£¬ Set£¬ MapÊÇ·ñ¼Ì³Ð×ÔCollection½Ó¿Ú£¿
µÚ¶þÊ®£¬abstract classºÍinterfaceÓÐʲôÇø±ð£¿
µÚ¶þʮһ£¬abstractµÄmethodÊÇ·ñ¿ÉͬʱÊÇstatic£¬ÊÇ·ñ¿ÉͬʱÊÇnative£¬ÊÇ·ñ¿ÉͬʱÊÇsynchronized£¿
µÚ¶þÊ®¶þ£¬½Ó¿ÚÊÇ·ñ¿É¼Ì³Ð½Ó¿Ú£¿ ³éÏóÀàÊÇ·ñ¿ÉʵÏÖ£¨implements£©½Ó¿Ú£¿ ³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀࣨconcrete class£©£¿
µÚ¶þÊ®Èý£¬Æô¶¯Ò»¸öÏß³ÌÊÇÓÃrun£¨£©»¹ÊÇstart£¨£©£¿
µÚ¶þÊ®ËÄ£¬¹¹ÔìÆ÷ConstructorÊÇ·ñ¿É±»override£¿
µÚ¶þÊ®Î壬ÊÇ·ñ¿ÉÒԼ̳ÐStringÀࣿ
µÚ¶þÊ®Áù£¬µ±Ò»¸öÏ߳̽øÈëÒ»¸ö¶ÔÏóµÄÒ»¸ösynchronized·½·¨ºó£¬ÆäËüÏß³ÌÊÇ·ñ¿É½øÈë´Ë¶ÔÏóµÄÆäËü·½·¨£¿
µÚ¶
Ïà¹ØÎĵµ£º
¸ÅÒª£ºJava¼¯ºÏAPIÔ¶²»Ö¹ÊÇÊý×éµÄÌæ´úÆ·£¬¾¡¹ÜÄÇÊÇÒ»¸ö²»»µµÄÈÏÖªÆðµã¡£Ted NewardչʾÁË5¸öÄܸü´óÀûÓü¯ºÏ¿ò¼ÜµÄÇÏÃÅ£¬°üº¬Ò»¸ö¶¨ÖƲ¢À©Õ¹Java¼¯ºÏAPIµÄÈëÃż¶Ó¦Óá£
¶ÔÓÚÐí¶àJava¿ª·¢Õ߶øÑÔ£¬Java¼¯ºÏAPIÊDZê×¼µÄJavaÊý×é¼°ÆäÈ«²¿È±µãµÄ±ØÒªÌæ´úÆ·¡£½«¼¯ºÏ¿ò¼ÜÖ÷ÒªÓëArrayListÁªÏµÆðÀ´²¢²»ÊÇÒ ......
jdkµÄ°²×°
1¡¢´Ójava.sun.com¸ãÏÂjdk×îеİ汾£¬Ò»°ãÎÒÃÇÓÃ1.6°æ±¾µÄ£¬ÏÂÔØbin¸ñʽµÄjdk£¬¼Ù¶¨ÏÂÔصÄÎļþÃûΪjdk-6u20-linux-i586.bin¡£
2¡¢chmod u+x jdk-6u20-linux-i586.bin;È»ºó ./jdk-6u20-linux-i586.bin ½âѹ£¬¼Ù¶¨½âѹºóµÄÎļþ¼ÐΪ jdk1.6_20;
3¡¢ÔÚ/usr/local/ ½¨Á¢Ò»¸öinstallµÄĿ¼£¬ È»ºó°Ñ½âÑ ......
¹úÍâÖøÃûjava¼¼Êõ×ÊÁÏÍøÕ¾
¹úÍâÖøÃûjava¼¼Êõ×ÊÁÏÍøÕ¾
http://www.onjava.com
O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ
http://java.sun.com
¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í
http://www.developer.com/java
Ó ......
//дÕâ¸ö³ÌÐòҲΪÁ˼ÍÄîÍõ½ÃñÏÈÉú……»°Ëµµ±ÄêËûÒ²ÊÇд¹ýÕâ¸öÀàËƳÌÐò
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class game extends Applet implements ActionListener{
//¶¨Òå±äÁ¿
int num1, num2, num3, jieguo, jilu, ......
http://hi.baidu.com/0_net/blog/item/8566fc2bb730c293033bf63e.html
Ò».»ñµÃ¿ØÖÆ̨Óû§ÊäÈëµÄÐÅÏ¢
/** *//**»ñµÃ¿ØÖÆ̨Óû§ÊäÈëµÄÐÅÏ¢
* @return
* @throws IOException
*/
public St ......