JAVAרҵÊõÓO
JAVAרҵÊõÓO
API£ºJava ApplicationProgrammingInterface API£¨Ó¦ÓóÌÐò½Ó¿Ú£©ÊÇÊÂÏÈдºÃµÄ´úÂë,
×éÖ¯µ½Ïà¹Ø°ü¡£ÀýÈç Applet ºÍ AWT °ü°üÀ¨½¨Á¢×ÖÌå¡¢²Ëµ¥¡¢°´Å¥µÄÀࣨCLASS£©£¬
È«²¿µÄJava API±»°üº¬ÔÚJavaTM 2 Standard Edition 1. ÔÚÏßAPIÎĵµ¡¡2. APIÎĵµ
ÏÂÔØ
Applet Applet£¨Ð¡Ó¦ÓóÌÐò£©ÊÇÔÚWEBä¯ÀÀÆ÷ÀïÔËÐеÄjava³ÌÐò¡£AppletsʹÓÃGUI£¬¿ÉÄÜ
ÓÐÎı¾¡¢Í¼Ïó¡¢°´Å¥¡¢ÉùÒôµÈ¡£ AWT ºÍ SWING ͨ³£±»ÁªºÏʹÓᣠ1. ¼Ü¹¹Applets
2. дһ¸öApplets 3. java.applet°ü
AWT£ºAbstract WindowToolkit AWT£¨³éÏó´°¿Ú¹¤¾ß¼¯£©ÊÇÒ»¸ö°üº¬ÓÃÀ´½¨Á¢AppletºÍÓ¦
ÓóÌÐòÐèÒªÓõ½µÄ×é¼þ£¨±ÈÈç°´Å¥¡¢²Ëµ¥¡¢¹ö¶¯ÌõµÈ£©µÄ°ü£¨package£©¡£ 1. AWTÔ
Ôò 2. Óà AWT¹¹ÔìGUI 3. java.awt °üÃèÊö 4. AWTÂÛ̳
JavaBeansTM JavaBean¿ÉÖظ´ÀûÓᢿɻ¥»»µÄÈí¼þ×é¼þ¡£ JavaBeans ¿ÉÄÜÊǼòµ¥µÄÏó°´
Å¥»òÕßÊÇ·ÃÎÊÊý¾Ý¿âµÄ¹¤¾ßµÈ¡£ 1. JavaBeans ¼¼Êõ: BeanContext API 2.
JavaBeansÂÛ̳
JFC£ºJavaTM Foundation Classes (JFC) JFC£¨JAVA»ù´¡Àࣩ¼¯ºÏÁËGUI×é¼þÒÔ¼°ÆäËûÄÜ
¼ò»¯¿ª·¢ºÍÕ¹¿ª×ÀÃæºÍInternet/IntranetÓ¦ÓõķþÎñ¡£ 1. Java Foundation Classes
(JFC) 2. JFC FAQ
JNI£ºJavaTMNative Interface JNI£¨JAVA±¾µØ½Ó¿Ú£©ÊÇ JDKÖÐJAVAµÄ±¾µØ±à³Ì½Ó¿Ú£¬JNI
ÔÊÐíJava´úÂë²Ù×÷ÓÃÆäËûµÄ¸ß¼¶£¨ÍƼö£©±à³ÌÓïÑÔ£¨±ÈÈçC¡¢C++£©±àдµÄÓ¦ÓóÌÐòºÍ
¿â¡£ 1. Ö¸ÄÏ: JNI 2. JNI¼¼Êõ3. JNI 1.2
JSP£ºJavaServerTM Pages ͨ¹ýÔÚHTMLÒ³ÃæÀïǶÈëscriptlets (Java±à³ÌÓïÑÔ´úÂë) ¹¹Ôì
JSP£¬ JSP Ò³Ãæ´¦Àí±íµ¥£¬Íê³É¼ÆË㣬 »òÕß×öJAVAÓïÑ
Ïà¹ØÎĵµ£º
5.ÈçºÎ´ÓJVMÖлñÈ¡ÐÅÏ¢À´½øÐе÷Õû
¡¡¡¡-verbose.gc¿ª¹Ø¿ÉÏÔʾgcµÄ²Ù×÷ÄÚÈÝ¡£´ò¿ªËü£¬¿ÉÒÔÏÔʾ×îæºÍ×î¿ÕÏÐÊÕ¼¯ÐÐΪ·¢ÉúµÄʱ¼ä¡¢ÊÕ¼¯Ç°ºóµÄÄÚ´æ´óС¡¢ÊÕ¼¯ÐèÒªµÄʱ¼äµÈ¡£´ò¿ª- xx:+ printgcdetails¿ª¹Ø£¬¿ÉÒÔÏêϸÁ˽âgcÖеı仯¡£´ò¿ª-XX: + PrintGCTimeStamps¿ª¹Ø£¬¿ÉÒÔÁ˽âÕâЩÀ¬»øÊÕ¼¯·¢ÉúµÄʱ¼ä£¬×ÔjvmÆô¶¯ÒÔºóÒÔ ......
1. ÄãÐèÒª¾«Í¨ÃæÏò¶ÔÏó·ÖÎöÓëÉè¼Æ£¨OOAOOD£©¡¢É漰ģʽ£¨GOF£¬J2EEDP£©ÒÔ¼°×ÛºÏģʽ¡£ÄãÓ¦¸ÃÁ˽âUML£¬ÓÈÆäÊÇclass¡¢object¡¢interactionÒÔ¼°statediagrams. ¡¡¡¡2. ÄãÐèҪѧϰJavaÓïÑԵĻù´¡ÖªÊ¶ÒÔ¼°ËüµÄºËÐÄÀà¿â£¨collections¡¢serialization¡¢streams¡¢networking¡¢multithreading¡¢reflection¡¢event¡¢handling¡¢N ......
String Óë StringBufferÇø±ð:
String×Ö·û´®¶ÔÏóÊDz»¿É±äµÄ£»StringBufferÊDZ䳤ºÍ¿ÉдµÄ¶¯Ì¬×Ö·ûÐòÁУ¬¿ÉÒÔ×Ô¶¯µØÔö¼Ó¿Õ¼ä¡£
Integer var = new Integer();//ÓÐÓï·¨´íÎó
Integer var = new Integer(2);//悦﵀
javaµÄVector³ÉÔ±ÊÇÒªÓÃelementAt(i)³ÉÔ±º¯ÊýÀ´»ñµÃµÄ£¬²»ÄÜÓÃve[i]µÃµ½¡£
Vector::public Enumeration< ......
finalize·½·¨
ËüÊÇjava.lang.ObjectÀàÖеķ½·¨. ÊÇprotectedµÄ.
ȱʡʱÕâ¸ö·½·¨ÊÇ¿ÕµÄ. JavaÔËÐÐϵͳÔÚÀ¬»ø»ØÊÕʱÔÚ¶ÔÏó±»³·Ïú֮ǰµ÷ÓÃÕâ¸ö·½·¨. µ«ÓÉÓÚÀ¬»øµ¥Ôª
»ØÊÕµÄʱ¼äÊDz»È·¶¨µÄ.ËùÒÔ²»Äܹý·ÖÒÀÀµËü(ÕâºÍc++µÄÎö¹¹º¯Êý²»Í¬).
¶øÖ»ÄÜÊÇ"ÔÚ¶ÔÏó±»³·Ïú֮ǰ"×öһЩ´¦Àí.ÀýÈç¿ÉÒÔÔÚÕâÀï¹Ø±Õ¹¹Ôì·½·¨Öдò¿ ......