JAVA»ñÈ¡µ±Ç°¹¤³Ì·¾¶(·Çweb¹¤³Ì)
×¢:²»ÊʺÏweb¹¤³Ì
1¡¢ÀûÓÃSystem.getProperty()º¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
System.out.println(System.getProperty("user.dir"));//user.dirÖ¸¶¨Á˵±Ç°µÄ·¾¶
2¡¢Ê¹ÓÃFileÌṩµÄº¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
File directory = new File("");//É趨Ϊµ±Ç°Îļþ¼Ð
try{
System.out.println(directory.getCanonicalPath());//»ñÈ¡±ê×¼µÄ·¾¶
System.out.println(directory.getAbsolutePath());//»ñÈ¡¾ø¶Ô·¾¶
}catch(Exceptin e){}
File.getCanonicalPath()ºÍFile.getAbsolutePath()´óÔ¼Ö»ÊǶÔÓÚnew File(".")ºÍnew File("..")Á½ÖÖ·¾¶ÓÐËùÇø±ð¡£
# ¶ÔÓÚgetCanonicalPath()º¯Êý£¬“."¾Í±íʾµ±Ç°µÄÎļþ¼Ð£¬¶ø”..“Ôò±íʾµ±Ç°Îļþ¼ÐµÄÉÏÒ»¼¶Îļþ¼Ð
# ¶ÔÓÚgetAbsolutePath()º¯Êý£¬Ôò²»¹Ü”.”¡¢“..”£¬·µ»Øµ±Ç°µÄ·¾¶¼ÓÉÏÄãÔÚnew File()ʱÉ趨µÄ·¾¶
# ÖÁÓÚgetPath()º¯Êý£¬µÃµ½µÄÖ»ÊÇÄãÔÚnew File()ʱÉ趨µÄ·¾¶
±ÈÈ統ǰµÄ·¾¶Îª C:\test £º
File directory = new File("abc");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\test\abc
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\abc
direcotry.getPath(); //µÃµ½µÄÊÇabc
File directory = new File(".");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\test
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\.
direcotry.getPath(); //µÃµ½µÄÊÇ.
File directory = new File("..");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\..
direcotry.getPath(); //µÃµ½µÄÊÇ..
ÁíÍ⣺System.getProperty()ÖеÄ×Ö·û´®²ÎÊýÈçÏ£º
System.getProperty()²ÎÊý´óÈ«
# java.version  
Ïà¹ØÎĵµ£º
Ò»¡¢¼Ì³Ð
1.¸ÅÄһ¸öÀà¼Ì³ÐÁíÒ»¸öÀ࣬Ôò³Æ¼Ì³ÐµÄÀàΪ×ÓÀ࣬±»¼Ì³ÐµÄÀàΪ¸¸Àà¡£
2.Ä¿µÄ£ºÊµÏÖ´úÂëµÄ¸´Óá£
3.Àí½â£º×ÓÀàÓ븸ÀàµÄ¹Øϵ²¢²»ÊÇÈÕ³£Éú»îÖеĸ¸×Ó¹Øϵ£¬×ÓÀàÓ븸Àà¶øÊÇÒ»ÖÖÌØÊ⻯ÓëÒ»°ã»¯µÄ¹Øϵ£¬ÊÇis-aµÄ¹Øϵ£¬×ÓÀàÊǸ¸Àà¸ü¼ÓÏêϸµÄ·ÖÀà¡£Èçclass dog extends animal,¾Í¿ÉÒÔÀí½âΪdog is a animal.×¢ÒâÉè¼ ......
Ò»¡¢´´½¨ÈÎÎñ
ÈÎÎñ¿ÉÒÔÀí½âΪһ¶Î¶ÀÁ¢Ö´ÐеĴúÂ룬ËüÍê³ÉÒ»¶¨µÄ¹¦ÄÜ¡£
ÔÚJava 5¼°ÒÔÉÏ°æ±¾Öв»½ö¿ÉÒÔÀûÓà Runnable½Ó¿Ú£¬»¹¿ÉÒÔÀûÓÃCallable½Ó¿Ú¡£
Á½ÖÖÈÎÎñµÄÇø±ð£ºRunnable µÄrun()·½·¨Íê³ÉµÄÈÎÎñÊÇûÓзµ»ØÖµµÄ - void
¶øCallable µÄcall()·½·¨Íê³ÉµÄÈÎÎñÊÇÓзµ»ØÖ ......
Java EE 6 Platform²Ý°¸°üº¬ÁËWeb Profile
À´Ô´£ºhttp://www.infoq.com/cn/news/2009/02/java-ee6-draft
×÷Õß Dionysios G. Synodinos ÒëÕß ËÎçâ ·¢²¼ÓÚ 2009Äê2ÔÂ3ÈÕ ÏÂÎç10ʱ55·Ö
ÉçÇø Java Ö÷Ìâ Enterprise Application Blocks ±êÇ© Java EE
Java EE 6 Platform¹æ·¶ ......
¹âÈÙµÄÔÚÆÚÄ©ÔÙÒ»´Î»¼ÉÏÁË“»¯Å§ÐÔ±âÌÒÌåÑ×”¡£´ø×Å39¶ÈµÄÌåο¼ÊÔµÄÈ·²»ÊǸöÊæ·þµÄÊ£¬ÄǼ¸ÌìÕâ°ÑÎÒ¸ø¼±µÃ°¡£¬×ܲ»ÄÜÔÚÕâ¸öʱºòÍí½Ú²»±£°É£¿Õæ²»ÖªÊÇΪʲô£¬Õâ¸ö²¡ÔÚÕâ°ë¸öѧÆÚÀïÕÛÄ¥ÁËÎҺü¸´Î£¬ÅªµÄÎÒ¶¼¶Ô×Ô¼ºÃ»Ê²Ã´ÐÅÐÄÁË£¬Ï£ÍûÕâ»ØÔÚ¼ÒÀïÄܹ»ºÃºÃµ÷ÕûÐÞÑøÒ»·¬£¬¿ªÊ¼ÐµÄÂó̡£
±ÏÉèµÄÌâÄ¿Ò²³öÀ´ÁË£¬Ö»²»¹ý ......
javaÖлù±¾Êý¾ÝÀàÐÍ°´¾«¶ÈµÍ¸ßµÄÅÅÁÐ˳ÐòÊÇ
byte<short<int<long<float<double
1.µ±°Ñ¼¶±ðµÍµÄ±äÁ¿µÄÖµ¸³¸ø¼¶±ð¸ßµÄ±äÁ¿Ê±£¬ÏµÍ³»á×Ô¶¯Íê³ÉÊý¾ÝÀàÐ͵Äת»» ......