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

µÚÈýƪ£ºJAVA×Ö·û±àÂëϵÁÐÈý£ºJavaÓ¦ÓÃÖеıàÂëÎÊÌâ

1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾­²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ¶
×îÔçµÄ±àÂëÊÇiso8859-1£¬ºÍascii±àÂëÏàËÆ¡£µ«ÎªÁË·½±ã±íʾ¸÷ÖÖ¸÷ÑùµÄÓïÑÔ£¬Öð½¥³öÏÖÁ˺ܶà±ê×¼±àÂ룬ÖØÒªµÄÓÐÈçϼ¸¸ö¡£
2.1. iso8859-1
ÊôÓÚµ¥×Ö½Ú±àÂ룬×î¶àÄܱíʾµÄ×Ö·û·¶Î§ÊÇ0-255£¬Ó¦ÓÃÓÚÓ¢ÎÄϵÁС£±ÈÈ磬×Öĸ'a'µÄ±àÂëΪ0x61=97¡£
ºÜÃ÷ÏÔ£¬iso8859-1±àÂë±íʾµÄ×Ö·û·¶Î§ºÜÕ­£¬ÎÞ·¨±íʾÖÐÎÄ×Ö·û¡£µ«ÊÇ£¬ÓÉÓÚÊǵ¥×Ö½Ú±àÂ룬ºÍ¼ÆËã»ú×î»ù´¡µÄ±íʾµ¥Î»Ò»Ö£¬ËùÒԺܶàʱºò£¬ÈÔ¾ÉʹÓÃiso8859-1±àÂëÀ´±íʾ¡£¶øÇÒÔںܶàЭÒéÉÏ£¬Ä¬ÈÏʹÓøñàÂë¡£±ÈÈ磬ËäÈ»"ÖÐÎÄ"Á½¸ö×Ö²»´æÔÚiso8859-1±àÂ룬ÒÔgb2312±àÂëΪÀý£¬Ó¦¸ÃÊÇ"d6d0 cec4"Á½¸ö×Ö·û£¬Ê¹ÓÃiso8859-1±àÂëµÄʱºòÔò½«Ëü²ð¿ªÎª4¸ö×Ö½ÚÀ´±íʾ£º"d6 d0 ce c4"£¨ÊÂʵÉÏ£¬ÔÚ½øÐд洢µÄʱºò£¬Ò²ÊÇÒÔ×Ö½ÚΪµ¥Î»´¦ÀíµÄ£©¡£¶øÈç¹ûÊÇUTF±àÂ룬ÔòÊÇ6¸ö×Ö½Ú"e4 b8 ad e6 96 87"¡£ºÜÃ÷ÏÔ£¬ÕâÖÖ±íʾ·½·¨»¹ÐèÒªÒÔÁíÒ»ÖÖ±àÂëΪ»ù´¡¡£
2.2. GB2312/GBK
Õâ¾ÍÊǺº×ӵĹú±êÂ룬רÃÅÓÃÀ´±íʾºº×Ö£¬ÊÇË«×Ö½Ú±àÂ룬¶øÓ¢ÎÄ×ÖĸºÍiso8859-1Ò»Ö£¨¼æÈÝiso8859-1±àÂ룩¡£ÆäÖÐgbk±àÂëÄܹ»ÓÃÀ´Í¬Ê±±íʾ·±Ìå×ֺͼòÌå×Ö£¬¶øgb2312Ö»Äܱíʾ¼òÌå×Ö£¬gbkÊǼæÈÝgb2312±àÂëµÄ¡£
2.3. unicode
ÕâÊÇ×îͳһµÄ±àÂ룬¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬¶øÇÒÊǶ¨³¤Ë«×Ö½Ú£¨Ò²ÓÐËÄ×ֽڵģ©±àÂ룬°üÀ¨Ó¢ÎÄ×ÖĸÔÚÄÚ¡£ËùÒÔ¿ÉÒÔ˵ËüÊDz»¼æÈÝiso8859-1±àÂëµÄ£¬Ò²²»¼æÈÝÈκαàÂë¡£²»¹ý£¬Ïà¶ÔÓÚiso8859-1±àÂëÀ´Ëµ£¬uniocode±àÂëÖ»ÊÇÔÚÇ°ÃæÔö¼ÓÁËÒ»¸ö0×Ö½Ú£¬±ÈÈç×Öĸ'a'Ϊ"00 61"¡£
ÐèҪ˵Ã÷µÄÊÇ£¬¶¨³¤±àÂë±ãÓÚ¼ÆËã»ú´¦Àí£¨×¢ÒâGB2312/GBK²»ÊǶ¨³¤±àÂ룩£¬¶øunicodeÓÖ¿ÉÒÔÓÃÀ´±íʾËùÓÐ×Ö·û£¬ËùÒÔÔںܶàÈí¼þÄÚ²¿ÊÇʹÓÃunicode±àÂëÀ´´¦ÀíµÄ£¬±ÈÈçjava¡£
2.4. UTF
¿¼Âǵ½unicode±àÂë²»¼æÈÝiso8859-1±àÂ룬¶øÇÒÈÝÒ×Õ¼Óøü¶àµÄ¿Õ¼ä£ºÒòΪ¶ÔÓÚÓ¢ÎÄ×Öĸ£¬unicodeÒ²ÐèÒªÁ½¸ö×Ö½ÚÀ´±íʾ¡£ËùÒÔunicode²»±ãÓÚ´«ÊäºÍ´æ´¢¡£Òò´Ë¶ø²úÉúÁËutf±àÂ룬utf±àÂë¼æÈÝiso8859-1±àÂ룬ͬʱҲ¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬²»¹ý£¬utf±àÂëÊDz»¶¨³¤±àÂ룬ÿһ¸ö×Ö·ûµÄ³¤¶È´Ó1-6¸ö×Ö½Ú²»µÈ¡£ÁíÍ⣬utf±àÂë×Ô´ø¼òµ¥µÄУÑ鹦ÄÜ¡£Ò»°ãÀ´½²£¬Ó¢ÎÄ×ÖÄ


Ïà¹ØÎĵµ£º

³õ̽javaÄÚ´æ»úÖÆ_¶ÑºÍÕ»

³õ̽javaÄÚ´æ»úÖÆ_¶ÑºÍÕ»
ÎÊÌâµÄÒýÈ룺
ÎÊÌâÒ»£º
String str1 = "abc";
String str2 = "abc";
System.out.println(str1==str2); //true
ÎÊÌâ¶þ£º
String str1 =new String ("abc");
String str2 =new String ("abc");
System.out.println(str1==str2); // false
ÎÊÌâÈý£º
String s1 = "ja";
String s2 = "v ......

java·ºÐÍÏê½â

·ºÐÍ£¨Generic type »òÕßgenerics£©ÊÇ¶Ô Java ÓïÑÔµÄÀàÐÍϵͳµÄÒ»ÖÖÀ©Õ¹£¬ÒÔÖ§³Ö´´½¨¿ÉÒÔ°´ÀàÐͽøÐвÎÊý»¯µÄÀà¡£¿ÉÒÔ°ÑÀàÐͲÎÊý¿´×÷ÊÇʹÓòÎÊý»¯ÀàÐÍʱָ¶¨µÄÀàÐ͵ÄÒ»¸öռλ·û£¬¾ÍÏñ·½·¨µÄÐÎʽ²ÎÊýÊÇÔËÐÐʱ´«µÝµÄÖµµÄռλ·ûÒ»Ñù¡£
¿ÉÒÔÔÚ¼¯ºÏ¿ò¼Ü£¨Collection framework£©Öп´µ½·ºÐ͵Ķ¯»ú¡£ÀýÈ磬MapÀàÔÊÐíÄúÏòÒ»¸öMapÌí ......

»ùÓÚ JVMTI ʵÏÖ Java Ï̵߳ļà¿Ø

Ëæ×ŶàºË CPU µÄÈÕÒæÆÕ¼°£¬Ô½À´Ô½¶àµÄ Java Ó¦ÓóÌÐòʹÓöàÏ̲߳¢ÐмÆËãÀ´³ä·Ö·¢»ÓÕû¸öϵͳµÄÐÔÄÜ¡£¶àÏ̵߳ÄʹÓÃÒ²¸øÓ¦ÓóÌÐò¿ª·¢ÈËÔ±´øÀ´Á˾޴óµÄÌôÕ½£¬²»ÕýÈ·µØʹÓöàÏ߳̿ÉÄÜÔì³ÉÏß³ÌËÀËø»ò×ÊÔ´¾ºÕù£¬µ¼ÖÂϵͳ̱»¾¡£Òò´Ë£¬ÐèÒªÒ»ÖÖÔËÐÐʱÏ̼߳à¿Ø¹¤¾ßÀ´°ïÖú¿ª·¢ÈËÔ±Õï¶ÏºÍ¸ú×Ù Java Ïß³Ì״̬µÄÇл»¡£JDK 1.5 ¼°ÆäºóÐø°æ± ......

Java Spring ÈëÃÅ±Ê¼Ç ÕýÔÚд

1£©¹Ù·½ÍøÕ¾
ÔÚѧϰһ¸ö¼¼ÊõÇ°Ö±µ½¹Ù·½ÍøÕ¾ÊǼ«Îª±ØÒªµÄ£¬¹Ù·½ÍøÕ¾²»µ«Ìṩ°²×°½éÖÊ£¬¶øÇÒÓÐÒ»Êֵļ¼Êõ²Î¿¼×ÊÁÏ¡£Ïл°¼ò˵ http://www.springsource.com/¡£ ÒÔÇ°ÔøÓùýspringframework.org£¬²»ÖªµÀΪʲôҪ¸ÄÁËÃû×Ö¡£
2£©¾­µä²Î¿¼Êé
ÓÐÈËÍƼö¹ýSpring In Action£¬ ÎÒ×Ô¼ºÊÇ´ÓSpring Reference¿ªÊ¼¶ÁµÄ¡£
3£©Á÷Ðеİ汾 ......

JavaÄÚ´æ¹ÜÀí£¨Ò»¡¢ÄÚ´æ·ÖÅ䣩

¹ØÓÚJavaÄÚ´æ·ÖÅ䣬ºÜ¶àÎÊÌⶼģģºýºý£¬²»ÄÜÈ«Ãæ¹áͨÀí½â¡£½ñ²éÔÄ×ÊÁÏ£¬ÓûÇóÉîÈëÍÚ¾ò£¬³¹µ×ÀíÇåjavaÄÚ´æ·ÖÅäÂöÂ磬ֻÒòˮƽÓÐÏÞ£¬Ã»´ïµ½Ô¤ÆÚЧ¹û£¬½öÒÔ´ËÎĶÔËùÑо¿µ½Ö®´¦×÷ÒԼǼ£¬ÎªÒÔºóѧϰÌṩ²Î¿¼£¬±ÜÃâÖØÍ·ÔÙÀ´¡£
 
Ò»¡¢JavaÄÚ´æ·ÖÅä
1¡¢ JavaÓм¸ÖÖ´æ´¢ÇøÓò£¿
* ¼Ä´æÆ÷
     -- ÔÚCP ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ