Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÿÌìѧϰһµãµã 09.10.14

                                                   ......

javaÊý¾ÝÀàÐÍÖ®¼äµÄת»»

 1£®JavaµÄ¼òµ¥ÀàÐͼ°Æä·â×°Æ÷Àà
¢ÅJava¼òµ¥ÀàÐÍÓë·â×°Àà
ÎÒÃÇÖªµÀ,JavaÓïÑÔÊǵäÐ͵ÄÖ§³ÖÃæÏò¶ÔÏóµÄ³ÌÐòÓïÑÔ,µ«¿¼Âǵ½ÓÐЩ»ù±¾Êý¾ÝÀàÐ͵Ľṹ¼òµ¥,Õ¼ÄÚ´æСÇÒ´æÈ¡ËٶȿìµÈÓŵã,JavaÒÀÈ»ÌṩÁ˶ÔÕâЩ·ÇÃæÏò¶ÔÏóµÄ¼òµ¥Êý¾ÝÀàÐ͵ÄÖ§³Ö¡£µ±È»,JavaÔÚÌṩ´óÁ¿µÄÆäËüÀàʱ,Ò²ÌṩÁËÓë¼òµ¥Êý¾ÝÀàÐͶÔÓ¦µÄ·â×°Àà,ÓÚÊÇ,JavaÖ ......

Java ÒÀÀµ×¢Éä¹æ·¶£¨JSR

JCP SE/EE Ö´ÐÐίԱ»á
Õýʽ½ÓÊÜÁË
JSR 330
—— Dependency Injection for Java¡£¸Ã¹æ·¶ÓÚ ½ñÄê 5 Ô 9 ÈÕ
ÓÉ Google µÄ Bob Lee ÒÔ¼° SpringSource µÄ Rod Johnson ×÷Ϊ¹æ·¶Áìµ¼Ìá½»¸ø JCP£¬ÏÖÔÚÒѾ­Õýʽ·¢²¼£¬²»µÃ²»¸Ð̾¸Ã¹æ·¶±ê×¼»¯¹ý³ÌÖ®¿ì¡£ÔÚ ×îÖÕͶƱ½á¹ûÖÐ
£¬14 Ʊͨ¹ý£¬1 ƱδͶ£¬1 Ʊ·´¶Ô¡£
J ......

Java֮staticѧϰ

¶ÔÓÚѧϰstaticÎÒÃÇÏÈÀ´¿´Á½¸öÀý×Ó£º
//Example 1 Tst.java£¬no main() method
package com.blogchina.qb2049;
public class Tst
{
static { System.out.println("111111"); }
}
ÔËÐнá¹ûΪ: 111111
Exception in thread "main" java.lang.NoSuchMethodError: main
ͬÑùµÄµÀÀí¿´µÚ¶þ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ