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

JavaÓïÑÔ»îµÄjdk¡¢jreºÍ²Ù×÷ϵͳ°æ±¾µÈÐÅÏ¢

      System.out.println(System.getProperty("java.version")); //java°æ±¾ºÅ
System.out.println(System.getProperty("java.vendor")); //JavaÌṩÉÌÃû³Æ
System.out.println(System.getProperty("java.vendor.url")); //JavaÌṩÉÌÍøÕ¾
System.out.println(System.getProperty("java.home")); //Java£¬Å¶£¬Ó¦¸ÃÊÇjreĿ¼
System.out.println(System.getProperty("java.vm.specification.version")); //JavaÐéÄâ»ú¹æ·¶°æ±¾ºÅ
System.out.println(System.getProperty("java.vm.specification.vendor")); //JavaÐéÄâ»ú¹æ·¶ÌṩÉÌ
System.out.println(System.getProperty("java.vm.specification.name")); //JavaÐéÄâ»ú¹æ·¶Ãû³Æ
System.out.println(System.getProperty("java.vm.version")); //JavaÐéÄâ»ú°æ±¾ºÅ
System.out.println(System.getProperty("java.vm.vendor")); //JavaÐéÄâ»úÌṩÉÌ
System.out.println(System.getProperty("java.vm.name")); //JavaÐéÄâ»úÃû³Æ
System.out.println(System.getProperty("java.specification.version")); //Java¹æ·¶°æ±¾ºÅ
System.out.println(System.getProperty("java.specification.vendor")); //Java¹æ·¶ÌṩÉÌ
System.out.println(System.getProperty("java.specification.name")); //Java¹æ·¶Ãû³Æ
System.out.println(System.getProperty("java.class.version")); //JavaÀà°æ±¾ºÅ
System.out.println(System.getProperty("java.class.path")); //JavaÀà·¾¶
System.out.println(System.getProperty("java.library.path")); //Java lib·¾¶
System.out.println(System.getProperty("java.io.tmpdir")); //JavaÊäÈëÊä³öÁÙʱ·¾¶
System.out.println(System.getProperty("java.compiler")); //Java±àÒëÆ÷
System.out.println(System.getProperty("java.ext.dirs")); //JavaÖ´Ðз¾¶
System.out.println(System.getProperty("os.name")); //²Ù×÷ϵͳÃû³Æ
System.out.println(System.getProperty("os.arch")); //
System.out.println(System.getProperty("os.version")); //°æ±¾ºÅ
System.out.println(System.getProperty("file.separator")); //Îļþ·Ö¸ô·û


Ïà¹ØÎĵµ£º

JAVA ¶¨Ê±Æ÷

(1)Timer.schedule(TimerTask task,Date time)°²ÅÅÔÚÖƶ¨µÄʱ¼äÖ´ÐÐÖ¸¶¨µÄÈÎÎñ¡£
(2)Timer.schedule(TimerTask task,Date firstTime ,long period)°²ÅÅÖ¸¶¨µÄÈÎÎñÔÚÖ¸¶¨µÄʱ¼ä¿ªÊ¼½øÐÐÖظ´µÄ¹Ì¶¨ÑÓ³ÙÖ´ÐУ®
(3)Timer.schedule(TimerTask task,long delay)°²ÅÅÔÚÖ¸¶¨ÑÓ³ÙºóÖ´ÐÐÖ¸¶¨µÄÈÎÎñ£®
(4)Timer.schedule(TimerTask ......

JAVAµ÷ÓÃDOCÃüÁî

public class test {
 
 public static void main(String argv[]) {
  try {  
   Runtime.getRuntime().exec("cmd /c  del F:\\aaa.txt");     
     } catch (Exception e) {  
   & ......

JAVA ÃæÊÔ32ÎÊ


µÚÒ»£¬ ̸̸final, finally, finalizeµÄÇø±ð¡£ £¨×î³£±»Îʵ½£© 
finalÐÞÊηû£¨¹Ø¼ü×Ö£© 
Èç¹ûÒ»¸öÀà±»ÉùÃ÷Ϊfinal£¬Òâζ×ÅËü²»ÄÜÔÙÅÉÉú³öеÄ×ÓÀ࣬²»ÄÜ×÷Ϊ¸¸Àà±»¼Ì³Ð¡£Òò´ËÒ»¸öÀ಻Äܼȱ»ÉùÃ÷Ϊabstract£¬ÓÖ±»ÉùÃ÷Ϊfinal¡£½«±äÁ¿»ò·½·¨ÉùÃ÷Ϊfinal£¬¿ÉÒÔ±£Ö¤ËüÃÇÔÚʹÓÃÖв»±»¸Ä±ä¡£Æä³õʼ»¯¿ÉÒÔÔÚÁ½¸öµØ·½ ......

Java Éè¼Æ·½Ãæ¾­Ñé»ýÀÛ

1£© ¾ßÌåÀ಻ÊÇÓÃÀ´¼Ì³ÐµÄ¡£Äܱ»¼Ì³ÐµÄÒ»¶¨ÊdzéÏóÀà¡£
Èç¹ûÔÚÒ»¸öԭʼµÄÉè¼ÆÀÓÐÁ½¸ö¾ßÌåÀ࣬ÀàAºÍÀàB,ÀàBÊÇÀàAµÄ×ÓÀ࣬ÄÇô×îºÃµÄÐ޸ķ½°¸ÊÇ£º
 ½¨Á¢Ò»¸ö³éÏ󣨻òÕß½Ó¿Ú£©C£¬È»ºóÈÃÀàAºÍÀàB³ÉΪÀàCµÄ×ÓÀà
2)³éÏóÀàÓ¦¾¡¿ÉÄܵÄÓµÓжàµÄ¹²Í¬´úÂë
 Ò»¸ö¶ÔÏó´Ó³¬Àà¼Ì³Ð¶øÀ´µÄ´úÂ룬ÔÚ²»Ê¹ÓÃʱ²»»áÔì³É¶Ô×ÊÔ´µÄÀ ......

ת£ºÌ½Ë÷ Java ͬ²½»úÖÆ

̽Ë÷ Java ͬ²½»úÖÆ http://www.ibm.com/developerworks/cn/java/j-lo-synchronized/ Monitor Object ²¢·¢Ä£Ê½ÔÚ Java ͬ²½»úÖÆÖеÄʵÏÖ    ¼¶±ð£º Öм¶ Àî Èýºì (lisanh@cn.ibm.com), ¸ß¼¶Èí¼þ¹¤³Ìʦ, IBM 2008 Äê 12 Ô 26 ÈÕ
±¾ÎÄ´ÓµäÐ굀 Monitor Object Éè¼ÆģʽÈëÊÖ£¬´ÓÒ»¸öеÄÊӽǣ¬À ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ