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

JavaÐéÄâ»ú ºÍ javaÐéÄâ»úϵĽø³Ì

Ò»¡¢Ê²Ã´ÊÇJavaÐéÄâ»ú
     µ±Äã̸µ½JavaÐéÄâ»úʱ£¬Äã¿ÉÄÜÊÇÖ¸£º
     1¡¢³éÏóµÄJavaÐéÄâ»ú¹æ·¶
     2¡¢Ò»¸ö¾ßÌåµÄJavaÐéÄâ»úʵÏÖ
     3¡¢Ò»¸öÔËÐеÄJavaÐéÄâ»úʵÀý
¶þ¡¢JavaÐéÄâ»úµÄÉúÃüÖÜÆÚ
     Ò»¸öÔËÐÐÖеÄJavaÐéÄâ»úÓÐ×ÅÒ»¸öÇåÎúµÄÈÎÎñ£ºÖ´ÐÐJava³ÌÐò¡£³ÌÐò¿ªÊ¼Ö´ÐÐʱËû²ÅÔËÐУ¬³ÌÐò½áÊøʱËû¾ÍÍ£Ö¹¡£ÄãÔÚͬһ̨»úÆ÷ÉÏÔËÐÐÈý¸ö³ÌÐò£¬¾Í»áÓÐÈý¸öÔËÐÐÖеÄJavaÐéÄâ»ú¡£
     JavaÐéÄâ»ú×ÜÊÇ¿ªÊ¼ÓÚÒ»¸ömain()·½·¨£¬Õâ¸ö·½·¨±ØÐëÊǹ«ÓС¢·µ»Øvoid¡¢Ö±½ÓÊÜÒ»¸ö×Ö·û´®Êý×é¡£ÔÚ³ÌÐòÖ´ÐÐʱ£¬Äã±ØÐë¸øJavaÐéÄâ»úÖ¸Ã÷Õâ¸ö°ü»»main()·½·¨µÄÀàÃû¡£
     Main()·½·¨ÊdzÌÐòµÄÆðµã£¬Ëû±»Ö´ÐеÄÏ̳߳õʼ»¯Îª³ÌÐòµÄ³õʼÏ̡߳£³ÌÐòÖÐÆäËûµÄÏ̶߳¼ÓÉËûÀ´Æô¶¯¡£JavaÖеÄÏ̷߳ÖΪÁ½ÖÖ£ºÊØ»¤Ïß³Ì £¨daemon£©ºÍÆÕͨỊ̈߳¨non-daemon£©¡£ÊØ»¤Ïß³ÌÊÇJavaÐéÄâ»ú×Ô¼ºÊ¹ÓõÄỊ̈߳¬±ÈÈ縺ÔðÀ¬»øÊÕ¼¯µÄÏ߳̾ÍÊÇÒ»¸öÊØ»¤Ï̡߳£µ±È»£¬ÄãÒ²¿É ÒÔ°Ñ×Ô¼ºµÄ³ÌÐòÉèÖÃΪÊØ»¤Ï̡߳£°üº¬Main()·½·¨µÄ³õʼÏ̲߳»ÊÇÊØ»¤Ï̡߳£
     Ö»ÒªJavaÐéÄâ»úÖл¹ÓÐÆÕͨµÄÏß³ÌÔÚÖ´ÐУ¬JavaÐéÄâ»ú¾Í²»»áÍ£Ö¹¡£Èç¹ûÓÐ×ã¹»µÄȨÏÞ£¬Äã¿ÉÒÔµ÷ÓÃexit()·½·¨ÖÕÖ¹³ÌÐò¡£
Èý¡¢JavaÐéÄâ»úµÄÌåϵ½á¹¹
     ÔÚJavaÐéÄâ»úµÄ¹æ·¶Öж¨ÒåÁËһϵÁеÄ×Óϵͳ¡¢ÄÚ´æÇøÓò¡¢Êý¾ÝÀàÐͺÍʹÓÃÖ¸ÄÏ¡£ÕâЩ×é¼þ¹¹³ÉÁËJavaÐéÄâ»úµÄÄÚ²¿½á¹¹£¬ËûÃDz»½ö½öΪJavaÐéÄâ»úµÄʵÏÖÌṩÁËÇåÎúµÄÄÚ²¿½á¹¹£¬¸üÊÇÑϸñ¹æ¶¨ÁËJavaÐéÄâ»úʵÏÖµÄÍⲿÐÐΪ¡£ 
     ÿһ¸öJavaÐéÄâ»ú¶¼ÓÉÒ»¸öÀà¼ÓÔØÆ÷×Óϵͳ£¨class loader subsystem£©£¬¸ºÔð¼ÓÔسÌÐòÖеÄÀàÐÍ£¨ÀàºÍ½Ó¿Ú£©£¬²¢¸³ÓèΨһµÄÃû×Ö¡£Ã¿Ò»¸öJavaÐéÄâ»ú¶¼ÓÐÒ»¸öÖ´ÐÐÒýÇ棨execution engine£©¸ºÔðÖ´Ðб»¼ÓÔØÀàÖаüº¬µÄÖ¸Áî¡£
     ³ÌÐòµÄÖ´ÐÐÐèÒªÒ»¶¨µÄÄÚ´æ¿Õ¼ä£¬Èç×Ö½ÚÂë¡¢±»¼ÓÔØÀàµÄÆäËû¶îÍâÐÅÏ¢¡¢³ÌÐòÖеĶÔÏó¡¢·½·¨µÄ²ÎÊý¡¢·µ»ØÖµ¡¢±¾µØ±äÁ¿¡¢´¦ÀíµÄÖмä±äÁ¿µÈµÈ¡£JavaÐéÄâ»ú½« ÕâЩÐÅϢͳͳ±£´æÔÚÊý¾ÝÇø£¨data areas£©ÖС£ËäȻÿ¸öJavaÐéÄâ»úµÄʵÏÖÖж¼°üº¬Êý¾ÝÇø£¬µ«ÊÇJavaÐéÄâ»ú¹æ·¶¶ÔÊý¾ÝÇøµÄ¹æ¶¨È´·Ç³£µÄ³éÏó¡£Ðí¶à½á¹¹ÉϵÄϸ½Ú²¿·Ö¶¼Áô¸øÁË JavaÐéÄâ»úʵÏÖÕß×Ô¼º·¢»Ó¡£²»Í¬JavaÐéÄâ»úʵÏÖÉϵÄÄÚ´æ½á¹¹Ç§²îÍò±ð¡£Ò»²¿·ÖʵÏÖ¿ÉÄÜÕ¼ÓÃ


Ïà¹ØÎĵµ£º

¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ9ÕÂ

µÚ9Õ ÊäÈëºÍÊä³öÁ÷
(Ò»)¿Î³ÌÄÚÈÝ
9.1×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
9.1.1 File¶ÔÏó
9.1.2Á÷¶ÔÏó
9.2»º³åʽÊäÈëÊä³ö
9.2.1»º³åʽÊäÈë
9.2.2»º³åʽÊä³ö
9.3Ëæ»ú·ÃÎÊ
9.4Îļþ¶Ô»°¿ò
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉÜJava³ÌÐòÊý¾ÝÎļþµÄÊäÈëÊä³ö¼¼Êõ¡£ÒªÇóÄܱàд¼òµ¥µÄJavaÎļþ´¦Àí³ÌÐò¡£
(Èý)¿¼ºË֪ʶµãÓ뿼ºËÒªÇó
1.´´½¨File¶ÔÏó£ ......

JAVA²Ù×÷XMLµÄÍêÕûÀý×Ó

ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
 <book>
  < ......

javaÖйØÓÚʱ¼äÈÕÆÚ²Ù×÷µÄ³£Óú¯Êý

1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year);
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0            
int day=time.getActualMaximum(Calendar.DAY_OF_MONTH);//±¾Ô·ݵÄÌìÊý ......

JDKÖаüº¬µÄ³£ÓÃJavaµ÷ÊÔ¹¤¾ß

1  JDK5.0°üÀ¨µÄµ÷ÊÔ¹¤¾ß
ÎÒÃÇÔÚÕâÀï¶ÔJDK5.0µÄµ÷ÊÔ¹¤¾ß×ö´óÖµĸÅÄîÐԵĽéÉÜ£¬È»ºóÏ£Íûͨ¹ý½éÉÜÎÒ×Ô¼ºÔÚʵ¼Ê¹¤×÷ÖÐʹÓÃÕâЩ¹¤¾ß½â¾öÎÊÌâµÄʵÀýÀ´Èôó¼Ò¶ÔÕâЩ¹¤¾ßÓиüÉîÈëµÄÁ˽⡣
 
¡¡JDK5.0ÀïÃæ¼ÓÈëÁËjstack, jconsole, jinfo, jmap, jdb, jstat, jps, ÏÂÃæ¶ÔÕâЩ¹¤¾ß×ö¼òµ¥½éÉÜ£º
¡¡jstack -- Èç¹ûjava³Ì ......

Jconsole ºÍ jps ÎÞ·¨ÏÔʾ±¾µØ Java ½ø³ÌÁбí

Ç°Ò»ÕóÔÚ¹«Ë¾ÀïʹÓà jconsle ʱһÇÐÕý³££¬È»¶øÔÚ¼ÒÖеĻúÆ÷ÉÏÈ´³öÏÖÁ˱êÌâËùʾµÄÎÊÌ⣺
jconsole ºÍ jps ÎÞ·¨ÏÔʾ±¾µØ Java ½ø³ÌÁÐ±í¡£
µ±Ê±Ö±½ÓÀûÓà -Dcom.sun.management.jmxremote.port=port Æô¶¯Ä¿±ê java ½ø³Ì£¬²¢ÔÚ jconsole ÖÐͨ¹ý localhost:port ·½Ê½³É¹¦Á¬½ÓÉÏÄ¿±ê java ½ø³Ì¡£ÓÐÁËÕâ¸ö work around Ö®ºó£¬¶ÔÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ