java lang°ü
StringBuffer s = “abc”; //¸³ÖµÀàÐͲ»Æ¥Åä
StringBuffer s = (StringBuffer)”abc”; //²»´æÔڼ̳йØϵ£¬ÎÞ·¨½øÐÐǿת
StringBuffer¶ÔÏóºÍString¶ÔÏóÖ®¼äµÄ»¥×ªµÄ´úÂëÈçÏ£º
String s = “abc”;
StringBuffer sb1 = new StringBuffer(“123”);
StringBuffer sb2 = new StringBuffer(s); //Stringת»»ÎªStringBuffer
String s1 = sb1.toString(); //StringBufferת»»ÎªString
9.5.4 System
SystemÀà´ú±íϵͳ£¬ÏµÍ³¼¶µÄºÜ¶àÊôÐԺͿØÖÆ·½·¨¶¼·ÅÖÃÔÚ¸ÃÀàµÄÄÚ²¿¡£¸ÃÀàλÓÚjava.lang°ü¡£
ÓÉÓÚ¸ÃÀàµÄ¹¹Ôì·½·¨ÊÇprivateµÄ£¬ËùÒÔÎÞ·¨´´½¨¸ÃÀàµÄ¶ÔÏó£¬Ò²¾ÍÊÇÎÞ·¨ÊµÀý»¯¸ÃÀà¡£ÆäÄÚ²¿µÄ³ÉÔ±±äÁ¿ºÍ³ÉÔ±·½·¨¶¼ÊÇstaticµÄ£¬ËùÒÔÒ²¿ÉÒԺܷ½±ãµÄ½øÐе÷Óá£
SystemÀàÄÚ²¿°üº¬in¡¢outºÍerrÈý¸ö³ÉÔ±±äÁ¿£¬·Ö±ð´ú±í±ê×¼ÊäÈëÁ÷£¨¼üÅÌÊäÈ룩£¬±ê×¼Êä³öÁ÷£¨ÏÔʾÆ÷£©ºÍ±ê×¼´íÎóÊä³öÁ÷£¨ÏÔʾÆ÷£©¡£
ÀýÈ磺
System.out.println£¨“Test”£©£»
¸ÃÐдúÂëµÄ×÷ÓÃÊǽ«×Ö·û´®“Test”Êä³öµ½ÏµÍ³µÄ±ê×¼Êä³öÉ豸ÉÏ£¬Ò²¾ÍÊÇÏÔʾÔÚÆÁÄ»ÉÏ¡£
Java±à³ÌÄÇЩʶù77——°ü×°Àà
JavaÓïÑÔÊÇÒ»¸öÃæÏò¶ÔÏóµÄÓïÑÔ£¬µ«ÊÇJavaÖеĻù±¾Êý¾ÝÀàÐÍÈ´ÊDz»ÃæÏò¶ÔÏóµÄ£¬ÕâÔÚʵ¼ÊʹÓÃʱ´æÔںܶàµÄ²»±ã£¬ÎªÁ˽â¾öÕâ¸ö²»×㣬ÔÚÉè¼ÆÀàʱΪÿ¸ö»ù±¾Êý¾ÝÀàÐÍÉè¼ÆÁËÒ»¸ö¶ÔÓ¦µÄÀà½øÐдú±í£¬ÕâÑù°Ë¸öºÍ»ù±¾Êý¾ÝÀàÐͶÔÓ¦µÄÀàͳ³ÆΪ°ü×°ÀࣨWrapper Class£©£¬ÓÐЩµØ·½Ò²·ÒëΪÍ⸲Àà»òÊý¾ÝÀàÐÍÀà¡£
°ü×°Àà¾ùλÓÚjava.lang°ü£¬°ü×°ÀàºÍ»ù±¾Êý¾ÝÀàÐ͵ĶÔÓ¦¹ØϵÈçϱíËùʾ£º
°ü×°Àà¶ÔÓ¦±í
»ù±¾Êý¾ÝÀàÐÍ
°ü×°Àà
byte
Byte
boolean
Boolean
short
Short
char
Character
int
Integer
long
Long
float
F
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
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& ......
תÌû´¦£ºhttp://dong-java.javaeye.com/blog/375150
1¡£ÍƼöʹÓÃOralce±È½ÏеÄ10.2.0.3 JDBC Drivers¡£Õâ¸ö°æ±¾¶Ô±È9.2µÄ×î´óµÄºÃ´¦ÊÇDriverManager.setLoginTimeoutº¯ÊýÊÇÆð×÷Óõġ£ÉèÖÃÁËÕâ¸ö²ÎÊý£¬ÔÚ¶ñÁÓµÄÍøÂç»·¾³ÖоͲ»»áÓÐÁ¬½ÓÊý¾Ý¿âµÄº¯Êý³¤Ê±¼ä²»·µ»ØµÄÇé¿ö¡£
2¡£JDBC Developer!ˉs Guide and Refer ......
JavaÀàÖеľ²Ì¬±äÁ¿ÔÚ³ÌÐòÔËÐÐÆڼ䣬ÆäÄÚ´æ¿Õ¼ä¶ÔËùÓиÃÀàµÄ¶ÔÏóʵÀý¶øÑÔÊǹ²ÏíµÄ£¬ÓÐЩʱºò¿ÉÒÔÈÏΪÊÇÈ«¾Ö±äÁ¿¡£Òò´ËÔÚijЩʱºòΪÁ˽ÚʡϵͳÄڴ濪Ïú¡¢¹²Ïí×ÊÔ´£¬¿ÉÒÔ½«ÀàÖеÄһЩ±äÁ¿ÉùÃ÷Ϊ¾²Ì¬±äÁ¿£¬Í¨¹ýÏÂÃæµÄÀý×Ó£¬Äã¿ÉÒÔ·¢ÏÖºÏÀíÓ¦Óþ²Ì¬±äÁ¿´øÀ´µÄºÃ´¦£º
¡¡¡¡Java´úÂë ......
ÔÎĵØÖ·£ºhttp://hi.baidu.com/lin_zy/blog/item/bf14d21f6bb12ff6e1fe0bf1.html
¸ÅÄî
ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆڼ䷢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ ......
×ÜÖ®£¬ÎÞÂÛÊǽø³ÌµÄ¸ÅÄÊÇÏ̵߳ĸÅÄ¶¼Ê¹±à³Ì´Ó´®Ðбà³Ì£¨ÒÀ´ÎÖ´ÐУ©½øÈëµ½²¢Ðбà³Ì£¨Í¬Ê±Ö´ÐУ©µÄÁìÓò£¬¶øÔÚCPUÄÚ²¿ÊµÏÖµÄÔÀí¶¼ÊÇ°´ÕÕʱ¼äƬ½øÐÐÇл»
2¡¢ ³ä·ÖÀûÓÃϵͳ×ÊÔ´
ͨ¹ýÔÚÒ»¸ö³ÌÐòÄÚ²¿Í¬Ê±Ö´Ðжà¸öÁ÷³Ì£¬¿ÉÒÔ³ä·ÖÀûÓÃCPUµÈϵͳ×ÊÔ´£¬´Ó¶ø×î´óÏ޶ȵķ¢»ÓÓ²¼þµÄÎüÄÜ¡£¾ÍÏñÒ»¸öÈËÍ¬Ê ......