Java SE 6 Beta
Sun·¢²¼ÁËJava SE 6 Beta
£¨ÒÔϼò³Æ6£©£¬²éÁ˲鹦ÄܸĽø
£¬Ã»Óз¢ÏÖʲô¼¤¶¯ÈËÐĵı仯¡£ÌôÁ˼¸ÌõÉÔ΢¸ÐÐËȤһµãµÄÆÀ¼Ûһϡ£
jconsole is more user-friendly
6µÄн¨Á¬½ÓµÄ´°¿ÚÓзdz£´óµÄ¸Ä±ä¡£ÔÚLocal Process´°¿ÚÁгöÁËËùÓб¾µØjava½ø³Ì£¨°üÀ¨jconsole±¾Éí£©£¬²»ÄÜͨ¹ýJconsole½øÐйÜÀíµÄ½ø³Ì´¦ÓÚdisable״̬¡£
µ«ÊÇ6²ÉÓõÄÊÇJava½çÃæÖÐ×îΪÄÑ¿´µÄWindow·ç¸ñ£¬¶øÇÒ»¹ÊÇʵÏÖµÄ×î²îµÄÒ»ÖÖ£¨ÔÚн¨Á¬½ÓÕâ¸ö¶Ô»°¿òÖе¹¸Ð¾õ²»³ö£©£¬»¹ÊÇ5ÀïÃæ²ÉÓõÄJava·ç¸ñ¸üΪÃÀ¹ÛÒ»µã¡£
¸öÈËÈÏΪjconsoleÖÐ×îÄÑÓõĵط½Ã»ÓÐÔÚÕâ¸ö°æ±¾Öеõ½Ð޸ģºMBean¹ÜÀí´°¿ÚÎÞ·¨¸´ÖÆ¡£ÎÒÉõÖÁ»³ÒÉjconsoleµÄ¿ª·¢ÈËÔ±ÓÐûÓÐʹÓÃ
jconsoleÈ¥ÕæÕý¹ÜÀí¹ýÓ¦Óã¬ÄѵÀËûÃǶ¼Ö»ÊÇÓÃÑÛ¾¦¿´µÄô£¿Ã¿µ±ÐèҪһЩMBeanµÄÊôÐÔµ±×÷²ÎÊýÈ¥µ÷Óú¯Êýʱ£¬Ã¿µ±ÐèÒª°Ñ·½·¨µÄ·µ»ØÖµ¼Ç¼ÏÂÀ´Áô
×÷²Î¿¼Ê±£¬ÎÒ¶¼ºÝµÄÑÀÑ÷Ñ÷µÄ¶Ô×ÅÆÁÄ»°ÑÕâЩ×Ö·ûÒ»¸öÒ»¸öµÄÒƵ½ÐèÒªµÄµØ·½……
IO Enhancement: Method for discovering free disk space
ǧºôÍò»½Ê¼³öÀ´°¡£¬ÖÕÓÚÓз½·¨¿ÉÒÔÄõ½¿ÕÏдÅÅÌ¿Õ¼äÁË¡£ÔÚ´Ë֮ǰֻÄÜÓÃApache commons io£¨·ÇJNI·½Ê½£¬¶øÊÇͨ¹ýµ÷ÓÃÃüÁîÐеõ½£©
Light-weight HTTP server
¶ÔÕâ¸öµ¹ÊǺܸÐÐËȤ£¬¿ÉϧÃèÊöµÄÓïÑɲ»Ï꣬²»ÖªµÀµ½µ×¼ÓÔÚÁËʲôµØ·½¡£ÕÒµ½µÄÅóÓÑÇëÖ¸µãһϣº£©
Update: ÕÒµ½ÁË£¬ÔÚcom.sun.net.httpserver°üÏ£¬ÍøÂç·½ÃæµÄ¹¦ÄÜÔöÇ¿¿É¼û£º
http://java.sun.com/javase/6/docs/guide/net/enhancements-6.0.html
Programmatic access to network parameters
InterfaceAddress.getBroadcast() µÃµ½¸ÃÍøÂç½Ó¿ÚµØÖ·µÄ¹ã²¥µØÖ·
InterfaceAddress.getNetworkPrefixLength() µÃµ½¸ÃÍøÂç½Ó¿ÚµØÖ·µÄ×ÓÍøÑÚÂë
NetworkInterface.getMTU() µÃµ½¸ÃÍøÂç½Ó¿ÚµÄMTUµÄ´óС
NetworkInterface.getHardwareAddress() µÃµ½¸ÃÍøÂç½Ó¿ÚµÄMACµØÖ·
µÈµÈһϵÁз½·¨£¬È«²¿ÔÚNetworkInterface/InterfaceAddressÕâÁ½¸öÀàÖУ¬ÕâЩ·½·¨µÄÔö¼Ó¶ÔÓڴ󲿷ֵÄÍøÂçÓ¦ÓÃÊÇÒ»¸öÀûºÃÏûÏ¢¡£
Class-path wildcards
Íü¼ÇÒÔÇ°ÔËÐÐjava³ÌÐòʱҪָ¶¨µÄ-cp 1.jar;2.jar;3.jar°É£¬ÏÖÔÚÖ»ÐèÒª-cp *¼´¿ÉÆ¥Å䵱ǰĿ¼ÏµÄËùÓÐjar°ü¡£Èç¹û»¹Òª¼ÓÉϵ±Ç°Ä¿Â¼ÏµÄËùÓÐclass£¬ÄǾÍ-cp .;*°É¡£
Improve uncontended synchronization performance / Improved performance of contended synchronization operations
ͬ²½µÄ¿ªÏú±»½øÒ»²½½µµÍ£¬¶ÔÓÚ¶àÏß³ÌÓ¦ÓÃÀ´Ëµ£¬Ò²ËãÊÇ
Ïà¹ØÎĵµ£º
Ê×ÏÈÓÐÈý¸ö¸ÅÄîÐèÒªÁ˽⣺
Ò»£®¾²Ì¬³õʼ»¯£ºÊÇÖ¸Ö´Ðо²Ì¬³õʼ»¯¿éÀïÃæµÄÄÚÈÝ¡£
¶þ£®ÊµÀý³õʼ»¯£ºÊÇÖ¸Ö´ÐÐʵÀý³õʼ»¯¿éÀïÃæµÄÄÚÈÝ¡£
Èý£®¹¹Ôì·½·¨£ºÒ»¸öÃû³Æ¸úÀàµÄÃû³ÆÒ»ÑùµÄ·½·¨£¬ÌØÊâÔÚÓÚ²»´ø·µ»ØÖµ¡£
¶ÔÓÚÕâÈý¸ö¸ÅÄ¸ø³öÒÔϳÌÐò£¬·½±ãÀí½â£º
Java´úÂë
class Book{ ......
javaµÚÒ»²½——JDK»·¾³±äÁ¿ÅäÖÃ
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ë«»÷°²×°¡£½«°²×°Â·¾¶¸ÄΪ£ºC:\jdk1.6.0£¨µ±È»ÆäËû·¾¶Ò²¿ÉÒÔ£©¡£
JDK°²×°Íê³ÉÖ®ºóÎÒÃÇÀ´ÉèÖû·¾³±äÁ¿£º
ÎҵĵçÄÔµãÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Ñ¡Ôñ“¸ß¼¶”±êÇ©£¬½øÈë»·¾³±äÁ¿ÉèÖ㬷ֱðÉèÖÃÈçÏÂÈý¸ö»·¾³±äÁ¿£º
£¨1£©É ......
д¸öMANIFEST.MF
Manifest-Version: 1.0
Created-By: shijishang
Main-Class: test2
×¢ÒâðºÅÖ®ºóÓпոñ£¬×îºóÒª¿ÕÁ½ÐÐ
ÓÃÃüÁîjar cvfm classes.jar META-INF/MANIFEST.MF classes
д¸öCMDÃüÁî
@echo off
java -jar -verbose:class classes.jar >> class.txt
pause
µ¼³öÐèÒª¾«¼òµÄ»ù±¾Àà
ÔÙÓÃÒÔÉÏ´ò ......
JAVAÀïµÄPINGÊÇÔÚJDK 1.5ºóÓÃÁËеĺ¯ÊýisreachableȥʵÏÖ,¾ßÌå½éÉÜÈçÏÂ:
InetAddress¶ÔÏóµÄ³£Ó÷½·¨
InetAddressÀàÓкܶàget·½·¨£¬ÓÃÀ´»ñÈ¡Ö÷»úÃû£¬Ö÷»úµØÖ·µÈÐÅÏ¢¡£Ö÷ÒªÓУº
byte[] getAddress() ·µ»Ø´ÎInetAddress¶ÔÏóµÄÔʼIPµØÖ·£¬±£´æΪһ¸öbyteÊý×é
String getCanonicalHostName() »ñÈ¡´ËIPµØÖ·µÄÍêÈ«ÏÞ¶ ......