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

É÷ÓÃJava×°ÏäÓë²ðÏä

ת×Ôhttp://xyiyy.javaeye.com/blog/358401
J2SE5.0ºóÌṩÁË×Ô¶¯×°ÏäÓë²ðÏäµÄ¹¦ÄÜ£¬´Ë¹¦ÄÜÊÂʵÉÏÊDZàÒëÆ÷À´°ïÄúµÄ棬±àÒëÆ÷ÔÚ±àÒëʱÆÚÒÀÄúËù±àдµÄ·½·¨£¬¾ö¶¨ÊÇ·ñ½øÐÐ×°Ïä»ò²ðÏ䶯×÷¡£ÀýÈ磺
                                   Integer i = 100;
Ï൱ÓÚ±àÒëÆ÷ΪÄú×÷ÒÔϵÄÓï·¨±àÒ룺
                                   Integer i = new Integer(100);
ËäÈ»´Ë¹¦Äܷܺ½±ã£¬µ«ÔÚ³ÌÐòÔËÐн׶ÎÄúµÃÁ˽âJavaµÄÓïÒå¡£ÈçÏÂÃæµÄ³ÌÐòÄܱàÒëͨ¹ý£º
                                   Integer i = null;
                                   int j = i;
´Ë³ÌÐò±àÒëʱͨ¹ý£¬µ«ÔËÐÐʱ»áÓдíÎó¡£ÒòΪÕâÖÖд·¨Ï൱ÓÚ£º
                                   Integer i = null;
                                   int j = i.intValue();
ÓÉÓÚiʵ¼ÊÉÏûÓвο¼ÖÁÈκεĶÔÏó£¬ËùÒÔ²»ÄܲÙ×÷intValue()·½·¨£¬ÉÏÃæ³ÌÐòÔËÐÐʱ»á³öÏÖNullPointerException´íÎó¡£
×Ô¶¯×°Ïä¡¢²ðÏäµÄ¹¦ÄÜÌṩÁË·½±ãÐÔ£¬µ«Òþ²ØÁËһϸ½Ú£¬ËùÒÔ±ØÐëСÐÄ¡£ÈçÏÂÁдúÂë1£º
public class AutoBoxDemo2
{
public static void main(String[] args)
{


Ïà¹ØÎĵµ£º

¹ØÓÚJAVAµÄtry catch finallyµÄÒ»¸öÎÊÌâ

class TestTryFinallyC {
public static void main(String[] args) {
System.out.println(testt());
}

public static int testt() {
int x = 99;
try {
return x;
}finally {
x = 8;
}
}
}

ijÄêijÔµÄijһÌ죬 ......

JAVAÀï apache,tomcat,jboss ·þÎñÆ÷

tomcatΪһ¸öjspºÍservletµÄÈÝÆ÷£¬µ«Ëü³ýÁËÕâ¸öÍ⻹×Ô´øÁËweb·þÎñÆ÷¡£Ò²¾ÍÊÇ˵£¬Ëü¼ÈÊÇservletÈÝÆ÷£¬Ò²ÊÇÒ»¸öweb·þÎñÆ÷¡£
ËüÊÇÓÃjava±àдµÄ£¬ÓÃÀ´Ö´ÐÐservletºÍjspµÄ£¬µ«´¦Àí¾²Ì¬×ÊÔ´ÉÏapacheµÈרҵ·þÎñÆ÷¹¦ÄÜÄÇôǿ¡£ËùÒԺܶàÈËÔ¸Ò⽫Á½Õß½áºÏÆðÀ´Ê¹Óá£tomcat´¦Àí¶¯Ì¬Ò³Ãæ£¬¶øappache´¦Àí¾²Ì¬×ÊÔ´£¬ÕâÑùÁ½Õ߸÷È¡Ëù³¤¡£Áí ......

java¶ÁÈ¡xmlÎļþ

import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Iterator;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class ReadSetting {
......

java³£Óðü

1¡¢java.lang°ü£ºjavaµÄºËÐÄÀà¿â£¬°üº¬ÁËÔËÐÐjava³ÌÐò±Ø²»¿ÉÉÙµÄϵͳÀ࣬Èç»ù±¾Êý¾ÝÀàÐÍ¡¢»ù±¾Êýѧº¯Êý¡¢×Ö·û´®´¦Àí¡¢Ï̡߳¢Òì³£´¦ÀíÀàµÈ£¬ÏµÍ³È±Ê¡¼ÓÔØÕâ¸ö°ü
2¡¢java.io°ü£ºjavaÓïÑԵıê×¼ÊäÈë/Êä³öÀà¿â£¬Èç»ù±¾ÊäÈë/Êä³öÁ÷¡¢ÎļþÊäÈë/Êä³ö¡¢¹ýÂËÊäÈë/Êä³öÁ÷µÈµÈ
3¡¢java.util°ü£º°üº¬Èç´¦Àíʱ¼äµÄdateÀ࣬´¦Àí±ä³ÉÊý ......

Java SE 6¸üУ¬ÐÔÄÜ´ó·ùÌáÉý

2010-01-16 06:51
¾ÝInternetNews.com±¨µÀ
£¬×÷Ϊ½ñÄêµÄµÚÒ»´Î¸üУ¬Java SE 6 Update 18£¨Ò²³ÆÎª6u18£©²»½öÐÞ¸´Á˳¬¹ý300¸öbug£¨¹»¶àµÄ°¡£©£¬¶øÇÒ¸üÖµµÃ×¢ÒâµÄÊÇ£¬ÌáÉýÁËÐéÄâ»úHotSpotµÄÐÔÄÜ£¬Õ⽫ͬʱÓÐÒæÓÚJavaºÍJavaFX£¨»ùÓÚJVMµÄRIA·½°¸£©Ó¦ÓóÌÐò¡£
´ËÍ⣬Java°²×°Æ÷µÄµ×²ã»úÖÆ±»Ìæ»»£¬¿ÉÓÃÐÔ´ó´óÌá¸ß¡£
jarÎļþ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ