JavaѧϰÐĵã¨×ª×ÔÕŹú±¦£©
1. Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨£¿
´ð£ºÊý×éûÓÐlength()Õâ¸ö·½·¨£¬ÓÐlengthµÄÊôÐÔ¡£
StringÓÐlength()Õâ¸ö·½·¨¡£
2. String s = new String("xyz");´´½¨Á˼¸¸öString Object?
´ð£ºÁ½¸ö¶ÔÏó£¬Ò»¸öÊÇ“xyx”,Ò»¸öÊÇÖ¸Ïò“xyx”µÄÒýÓöÔÏós¡£
3. abstract classºÍinterfaceÓÐʲôÇø±ð£¿
´ð£ºÉùÃ÷·½·¨µÄ´æÔÚ¶ø²»È¥ÊµÏÖËüµÄÀà±»½Ð×ö³éÏóÀࣨabstract class£©£¬ËüÓÃÓÚÒª´´½¨Ò»¸öÌåÏÖijЩ»ù±¾ÐÐΪµÄÀ࣬²¢Îª¸ÃÀàÉùÃ÷·½·¨£¬µ«²»ÄÜÔÚ¸ÃÀàÖÐʵÏÖ¸ÃÀàµÄÇé¿ö¡£²»ÄÜ´´½¨abstract ÀàµÄʵÀý¡£È»¶ø¿ÉÒÔ´´½¨Ò»¸ö±äÁ¿£¬ÆäÀàÐÍÊÇÒ»¸ö³éÏóÀ࣬²¢ÈÃËüÖ¸Ïò¾ßÌå×ÓÀàµÄÒ»¸öʵÀý¡£²»ÄÜÓгéÏó¹¹Ô캯Êý»ò³éÏó¾²Ì¬·½·¨¡£Abstract ÀàµÄ×ÓÀàΪËüÃǸ¸ÀàÖеÄËùÓгéÏó·½·¨ÌṩʵÏÖ£¬·ñÔòËüÃÇÒ²ÊdzéÏóÀࡣȡ¶ø´úÖ®£¬ÔÚ×ÓÀàÖÐʵÏָ÷½·¨¡£ÖªµÀÆäÐÐΪµÄÆäËüÀà¿ÉÒÔÔÚÀàÖÐʵÏÖÕâЩ·½·¨¡£
½Ó¿Ú£¨interface£©ÊdzéÏóÀàµÄ±äÌå¡£ÔÚ½Ó¿ÚÖУ¬ËùÓз½·¨¶¼ÊdzéÏóµÄ¡£¶à¼Ì³ÐÐÔ¿Éͨ¹ýʵÏÖÕâÑùµÄ½Ó¿Ú¶ø»ñµÃ¡£½Ó¿ÚÖеÄËùÓз½·¨¶¼ÊdzéÏóµÄ£¬Ã»ÓÐÒ»¸öÓгÌÐòÌå¡£½Ó¿ÚÖ»¿ÉÒÔ¶¨Òåstatic final³ÉÔ±±äÁ¿¡£½Ó¿ÚµÄʵÏÖÓë×ÓÀàÏàËÆ£¬³ýÁ˸ÃʵÏÖÀ಻ÄÜ´Ó½Ó¿Ú¶¨ÒåÖм̳ÐÐÐΪ¡£µ±ÀàʵÏÖÌØÊâ½Ó¿Úʱ£¬Ëü¶¨Ò壨¼´½«³ÌÐòÌå¸øÓ裩ËùÓÐÕâÖֽӿڵķ½·¨¡£È»ºó£¬Ëü¿ÉÒÔÔÚʵÏÖÁ˸ýӿڵÄÀàµÄÈκζÔÏóÉϵ÷Óýӿڵķ½·¨¡£ÓÉÓÚÓгéÏóÀ࣬ËüÔÊÐíʹÓýӿÚÃû×÷ΪÒýÓñäÁ¿µÄÀàÐÍ¡£Í¨³£µÄ¶¯Ì¬Áª±à½«ÉúЧ¡£ÒýÓÿÉÒÔת»»µ½½Ó¿ÚÀàÐÍ»ò´Ó½Ó¿ÚÀàÐÍת»»£¬instanceof ÔËËã·û¿ÉÒÔÓÃÀ´¾ö¶¨Ä³¶ÔÏóµÄÀàÊÇ·ñʵÏÖÁ˽ӿÚ.
4. ==ºÍequalsµÄÇø±ð£¿
´ð£º==ÓÃÓÚÅжÏÁ½¸öÒýÓñäÁ¿ÊÇ·ñÖ¸Ïòͬһ¸ö¶ÔÏóʵÀý.
equalsÓÃÓÚÅжÏÁ½¸öÖµÊÇ·ñÏàµÈ.
5. SetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ? ÊÇÓÃ==»¹ÊÇequals()? ËüÃÇÓкÎÇø±ð?
´ð£ºSetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃiterator()·½·¨À´Çø·ÖÖظ´Óë·ñ¡
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
1 String command = " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
2 try {
3 Process process& ......
2009Äê1Ô£¬Ä³Èí¼þ¹«Ë¾Ò»ÔòÄêнʮÍòÕÐƸJAVA¸ß¼¶Èí¼þ¹¤³ÌʦµÄ¹ã¸æÎüÒýÁËÖÚ¶àýÌåºÍIT´ÓÒµÈËÔ±µÄÄ¿¹â£¬´ó¼ÒÖÃÒɵijýÁËÆľßÎüÒýÁ¦µÄÄêн֮Í⣬¸ü¶àµÄÊǶԸÃÆóÒµÔ¸ÒâƸÇë“ÓÐÄÜÁ¦µÄÓ¦½ì±ÏÒµÉú”¸Ðµ½À§»ó¡£ÔÚ´ó¶àÊýÆóÒµ¶¼Ç¿µ÷¹¤×÷¾ÑéµÄʱºò£¬¸ÃÆóҵΪʲôԸÒâ¸ß¶îƸÇëÓ¦½ì±ÏÒµÉúÄØ£¿¸ÃÆóÒµ¸ºÔðÈ˵ÄÒ»¾ä¿´ËƼòµ¥µÄ&ld ......
½«JavaÓ¦ÓóÌÐò±¾µØ±àÒëΪEXEµÄ¼¸ÖÖ·½·¨(ÍƼöʹÓÃJOVEºÍJET)
1. ´Ówww.towerj.com»ñµÃÒ»¸öTowerJ±àÒëÆ÷£¬¸Ã±àÒëÆ÷¿ÉÒÔ½«ÄãµÄCLASSÎļþ
±àÒë³ÉEXEÎļþ¡£
2. ÀûÓÃ΢ÈíµÄSDK-Java 4.0ËùÌṩµÄjexegen.exe´´½¨EXEÎļþ£¬Õâ¸öÈí¼þ¿ÉÒÔ
´Ó΢ÈíµÄÍøÕ¾Ãâ·ÑÏÂÔØ£¬µØÖ·ÈçÏ£º
ht ......
ÔÎĵØÖ·£ºhttp://hi.baidu.com/lin_zy/blog/item/bf14d21f6bb12ff6e1fe0bf1.html
¸ÅÄî
ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆڼ䷢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ ......
×ÜÖ®£¬ÎÞÂÛÊǽø³ÌµÄ¸ÅÄÊÇÏ̵߳ĸÅÄ¶¼Ê¹±à³Ì´Ó´®Ðбà³Ì£¨ÒÀ´ÎÖ´ÐУ©½øÈëµ½²¢Ðбà³Ì£¨Í¬Ê±Ö´ÐУ©µÄÁìÓò£¬¶øÔÚCPUÄÚ²¿ÊµÏÖµÄÔÀí¶¼ÊÇ°´ÕÕʱ¼äƬ½øÐÐÇл»
2¡¢ ³ä·ÖÀûÓÃϵͳ×ÊÔ´
ͨ¹ýÔÚÒ»¸ö³ÌÐòÄÚ²¿Í¬Ê±Ö´Ðжà¸öÁ÷³Ì£¬¿ÉÒÔ³ä·ÖÀûÓÃCPUµÈϵͳ×ÊÔ´£¬´Ó¶ø×î´óÏ޶ȵķ¢»ÓÓ²¼þµÄÎüÄÜ¡£¾ÍÏñÒ»¸öÈËÍ¬Ê ......