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

javaÃæÊÔÌâ

¾­¹ý³¤Ê±¼äµÄÃæÊÔ£¬ÒÔÏÂÊÇJAVAÃæÊԵij£¼ûµÄ±ÊÊÔÌâµÄÕûÀí¡£
1¡¢StringºÍStringBufferµÄÇø±ð
     JAVAƽ̨ÌṩÁËÁ½¸öÀࣺStringºÍStringBuffer£¬ËüÃÇ¿ÉÒÔ´¢´æºÍ²Ù×Ý×Ö·û´®£¬¼´°üº¬¶à¸ö×Ö·ûµÄ×Ö·ûÊý¾Ý¡£
StringÀàÌṩÁËÊýÖµ²»¿É±äµÄ×Ö·û´®¡£StringBufferÀàÌṩµÄ×Ö·û´®½øÐÐÐ޸ġ£µ±ÖªµÀ×Ö·ûÊý¾ÝÒª¸Ä±äµÄʱºò¾Í
¿ÉÒÔÓÃStringBuffer¡£µäÐ͵أ¬¿ÉÒÔʹÓÃStringBufferÀ´¶¯Ì¬¹¹Ôì×Ö·ûÊý¾Ý¡£
2¡¢ String s=new String("xyz")£¬´´½¨Á˼¸¸ö¶ÔÏó£¿
      Á½¸ö¶ÔÏó£¬Ò»¸öÊÇ"xyz"£¬Ò»¸öÊÇÖ¸Ïò"xyz"µÄÒýÓöÔÏós¡£
     
3¡¢ÊÇ·ñ¿ÉÒԼ̳ÐStringÀà?
     StringÀàÊÇfinalÀà¹Ê²»¿É¼Ì³Ð¡£
4¡¢Ëµ³öArrayList¡¢Vector¡¢LinkedListµÄ´æ´¢ÐÔÄÜÌØÐÔ
     ArrayListºÍVector¶¼ÊÇʹÓÃÊý×鷽ʽ´æ´¢Êý¾Ý£¬´ËÊý×éÔªËØ´óÓÚʵ¼Ê´æ´¢µÄÊý¾ÝÒÔ±ãÔö¼ÓºÍ²åÈëÔªËØ£¬ËüÃǶ¼
ÔÊÐíÖ±½Ó°´ÐòºÅË÷ÒýÔªËØ£¬µ«ÊDzåÈëÔªËØÒªÉæ¼°Êý×éÔªËØÒƶ¯µÈÄÚ´æ²Ù×÷£¬Ë÷ÒýÊý¾Ý¿ì¶ø²åÈëÊý¾ÝÂý£¬Vector
ÓÉÓÚʹÓÃÁËsynchronized·½·¨£¨Ḭ̈߳²È«£©£¬Í¨³£ÐÔÄÜÉϽÏArrayList²î£¬¶øLinkedListʹÓÃË«ÏòÁ´±íʵÏÖ´æ´¢£¬
°´ÐòºÅË÷ÒýÊý¾ÝÐèÒª½øÐÐÇ°Ïò»òÏòºóµÄ±éÀú£¬µ«ÊDzåÈëÊý¾ÝʱֻÐèÒª¼Ç¼±¾ÏîµÄÇ°ºóÏî¼´¿É£¬Ë÷Òý²åÈëÊý¾Ý½Ï¿ì¡£
5¡¢OverloadºÍOverrideµÄÇø±ð¡£OverloadedµÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ£¿
     ·½·¨µÄÖØдOverridingºÍÖØÔØOverloadingÊÇJava¶à̬ÐԵIJ»Í¬±íÏÖ¡£
ÖØдOverridingÊǸ¸ÀàÓë×ÓÀàÖ®¼ä¶à̬ÐÔµÄÒ»ÖÖ±íÏÖ£¬ÖØÔØOverloadingÊÇÒ»¸öÀàÖжà̬ÐÔµÄÒ»ÖÖ±íÏÖ¡£
Èç¹ûÔÚ×ÓÀàÖж¨Òåij·½·¨ÓëÆ丸ÀàÓÐÏàͬµÄÃû³ÆºÍ²ÎÊý£¬ÎÒÃǾÍ˵¸Ã·½·¨±»ÖØд£¨Overriding£© ¡£×ÓÀàµÄ¶ÔÏóʹÓÃ
Õâ¸ö·½·¨Ê±£¬½«µ÷ÓÃ×ÓÀàÖеĶ¨Ò壬¶ÔËü¶øÑÔ£¬¸¸ÀàÖеĶ¨ÒåÈçͬ±»“ÆÁ±Î”ÁË¡£Èç¹ûÔÚÒ»¸öÀàÖж¨ÒåÁ˶à¸öͬÃûµÄ
·½·¨£¬ËüÃÇ»òÓв»Í¬µÄ²ÎÊý¸öÊý»òÕßÓв»Í¬µÄ²ÎÊýÀàÐÍ£¬Ôò³ÆΪ·½·¨µÄÖØÔØ£¨Overloading£©¡£
OverloadedµÄ·½·¨ÊÇ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ¡£
6¡¢forwardºÍredirectµÄÇø±ð
     forward ÊÇ·þÎñÆ÷ÇëÇó×ÊÔ´£¬·þÎñÆ÷Ö±½Ó·ÃÎÊÄ¿±êµØÖ·µÄURL£¬°ÑÄǸöURLµÄÏìÓ¦ÄÚÈݶÁÈ¡¹ýÀ´£¬È»ºó°ÑÕâЩÄÚ
ÈÝÔÙ·¢¸øä¯ÀÀÆ÷£¬ä¯ÀÀÆ÷¸ù±¾²»ÖªµÀ·þÎñÆ÷·¢Ë͵ÄÄÚÈÝÊÇ´ÓÄĶùÀ´µÄ£¬ËùÒÔËüµÄµØÖ·À¸Öл¹ÊÇÔ­À´µÄµØÖ·¡£
redirect ¾ÍÊÇ·þÎñ¶Ë¸ù¾ÝÂß¼­£¬·¢ËÍÒ


Ïà¹ØÎĵµ£º

Java´úÂëÖظ´Ê¹ÓÃ

 Ê×ÏÈÔÚ¹«¹²ÀàдºÃÊý¾Ý¿âÁ¬½ÓºÍ¹Ø±Õ·½·¨£º
public static Connection getConnection(){
Connection conn = null;
try {
Context ic = new InitialContext();
DataSource source = (DataSource)ic.lookup("java:comp/env/jdbc/ownHome");
conn = source.getConnection();
} catch (NamingExcepti ......

AjaxSwing 3.0·¢²¼ ¿É½«Java Swingת»¯ÎªAjax

AjaxSwingÊÇÒ»¸öרΪJava SwingÓ¦Óà ³ÌÐò´òÔìµÄWeb¿ª·¢Æ½Ì¨¡£Ê¹ÓÃAjaxSwing£¬¿ÉÒÔʹΪJava×ÀÃæÓ¦ÓóÌÐòתΪWebÓ¦ÓᣠAjaxSwing¿ÉÒÔ±»¿´×÷ÊÇÒ»¸öJavaµ½HTMLµÄת»»Æ÷£¬Æä³ÌÐò¿ÉÒÔÔÚÔËÐÐʱ´´½¨±»ä¯ÀÀÆ÷½âÎöµÄHTMLºÍ JavaScript¡£ÁíÍ⣬ʹÓÃAjaxSwingÎÞÐè¶Ô³ÌÐòºÍÒµÎñÂß¼­½øÐдó·ùÐÞ¸ÄÐ޸ģ¬ËüÔÊÐí¿ª·¢ÕßʹÓñê×¼Swing×é¼þÀ´Êµ ......

java ÖøÃûÍøÕ¾ ÍøÖ·

http://www.javaalmanac.com - Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾. ÒªÏë¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨¼°Ê¾Àý´úÂë, ÕâÊÇÒ»¸ö²»´íµÄÈ¥´¦.
http://www.onjava.com - O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ.
http://java.sun.com - ¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í.
http://www.developer.com/java - ÓÉGamelan.com ά ......

JavaÊÊÅäÆ÷

ParserAdapter£¬MouseInputAdapter....
interface can be added to an existing class or used to create an adapter
·½·¨¾ÍÊÇ ÃæÏò½á¹¹ÓïÑԵģºº¯Êý
javaÖÐÊÊÅäÆ÷µÄ×÷ÓÃʵ¼ÊÉÏÊÇʵÏÖÁ˽ӿڵÄÀ࣬µ«ÊÇÊÊÅäÆ÷ËùʵÏÖµÄÖ»ÊÇ¿Õ·½·¨¡£ÒòΪÈç¹ûÎÒÃDz»ÓÃÊÊÅäÆ÷£¬Ö±½ÓȥʵÏÖ½Ó¿Ú£¬Ò²ÒªÖð¸öʵÏÖÀïÃæµÄ·½·¨£¬²¢ÇÒ´ó¶àÇé¿öÏÂÎÒÃÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ