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

Effective Java ѧϰ±Ê¼Ç(4)

Õâ¸öÔ­ÔòºÜ¼òµ¥£¬¾ÍÊÇʹÓÃ˽Óй¹Ô캯Êý·ÀÖ¹À౻ʵÀý»¯¡£ ÓÐʱ£¬ÎÒÃÇ»áдһЩ¹¤¾ßÀ࣬Èçjava.lang.Math »òÊÇ java.util.Arrays, ÕâЩÀàÖж¼ÊǾ²Ì¬º¯Êý£¬ÔÚÉè¼ÆµÄʱºò£¬ÕâЩÀಢ²»ÊÇÓÃÀ´±»ÊµÀý»¯µÄ¡£Õâ¸öʱºò£¬¾ÍºÜÓбØÒª°Ñ¹¹Ô캯Êý˽Óл¯¡£ public class UtilityClass {

private UtilityClass() {
throw new AssertionError();
}

} ¸ü±£ÏÕµÄÊÇÔÚ¹¹Ô캯ÊýÖÐÅ׸öÒì³£¡£ µ±È»£¬ÕâÖÖ·½·¨µÄȱµã»¹ÊÇÓеģ¬¾ÍÊÇÕâ¸öÀ಻Äܱ»¼Ì³ÐÁË¡£


Ïà¹ØÎĵµ£º

JavaÓëÆäËûÓïÑԵĻ¥²Ù×÷ÐÔ

JavaÓëÆäËûÓïÑԵĻ¥²Ù×÷ÐÔ ÊÕ²Ø
Ä¿Ç°£¬ÎÒÃÇÏîÄ¿ÖÐÐèÒªÓõ½°ÑJava³ÌÐòǶÈëµ½.Net³ÌÐòÖеļ¼Êõ£¬ÎÒÃÇ×îºóËù²ÉÓõļ¼ÊõÊÇCodemesh¹«Ë¾µÄJuggerNET¡£ÕâÖÖÀàËƵļ¼ÊõºÜ¶à£¬±È½ÏÖªÃûµÄÖ÷ÒªÓÐintrinsyc¹«Ë¾µÄJIntegraÒÔ¼°IBMµÄJava COM bridge¡£
ÏîÄ¿½øÐе½ÏÖÔÚ£¬·¢ÏÖÁ˺ܶàÎÊÌ⣬Ö÷ÒªÓÐÈçϼ¸´óÀàÎÊÌ⣺
1¡¢µ¯³ö´°¿ÚÎÊÌâ
¶ÔÓ ......

ÈçºÎÍ£Ö¹javaÏß³Ì

ÈçºÎÍ£Ö¹javaµÄÏß³ÌÒ»Ö±ÊÇÒ»¸öÀ§ÄÕÎÒÃÇ¿ª·¢¶àÏ̳߳ÌÐòµÄÒ»¸öÎÊÌâ¡£Õâ¸öÎÊÌâ×îÖÕÔÚJava5µÄjava.util.concurrentÖеõ½Á˻شð£ºÊ¹ÓÃinterrupt()£¬ÈÃÏß³ÌÔÚrun·½·¨ÖÐÍ£Ö¹¡£ ¼ò½é ÔÚJavaµÄ¶àÏ̱߳à³ÌÖУ¬java.lang.ThreadÀàÐÍ°üº¬ÁËһЩÁеķ½·¨start(), stop(), stop(Throwable) and suspend(), destroy() and resume()¡£Í¨¹ ......

javaÖÐÈçºÎ»ñµÃ²Ù×÷ϵͳÏÂÓû§Ä¿Â¼


String usrHome = System.getProperty("user.home");
ÏÂÃæÊÇSystemµÄ²ÎÊýÁбí
Key                     Meaning
-------------------     ---------------------- ......

ÈçºÎÔÚDosϱàÒëºÍÔËÐÐJava³ÌÐò£¿


ÈçºÎÔÚDosϱàÒëºÍÔËÐÐJava³ÌÐò£¿
2009-03-27 01:37
   ½ñÌìÕýʽµÄ½Ó´¥µ½Java³ÌÐò£¬Ñ§»áÁËÈçºÎÔÚDosϱàÒëºÍÔËÐÐJava³ÌÐò£¬ºÜÊÇÐÀµ«ÔÚѧϰ¹ý³ÌÖÐÓöµ½ÁËһЩÎÊÌ⣬¾­¹ýºÍÍŶӳÉÔ±µÄ¹²Í¬Å¬Á¦ÖÕÓÚ½â¾öÁËÎÊÌ⣬ÔÚÕâÀïÎÒ̸̸½ñÌìѧϰµÄ¹ý³Ì£º
    µÚÒ»£ºÊ×ÏÈ°²×°JDK¡£
  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ