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

תÌù£ºJavaÓïÑÔµÄÊ®´óÎÊÌâ¼°ÒýÉê˼¿¼

ת×Ô£ºhttp://blog.163.com/gordonkkk/blog/static/63425684200962795039630/
´ÓCSDNÉÏ¿´µ½Ò»ÆªÅúÆÀJavaÓïÑÔÖî¶àÎÊÌâµÄ·­ÒëÎÄÕ£¬Ô­ÎÄ×÷ÕßÊÇMario Fusco¡£ËûÖ¸³öÁËJavaÓïÑÔÂäºóÓÚʱ´ú£¬»ýÖØÄÑ·µµÄ10¸öÎÊÌâ¡£¿´¹ýÖ®ºóÒýÆðÁËÎÒµÄһЩÁªÏë¡£ÏÂÃæÁгöËûËù˵µÄ10´óÎÊÌâ¡£½Û»ÆÉ«×ÖÌåÊÇÎÒÒ»µãµã²»³ÉÊìµÄ˼¿¼¡£
1¡¢È±ÉÙ±Õ°ü£¨closure£©£ºÎÒÏëÕâ¸ö²»ÐèÒª½âÊÍÁË¡£º¯Êýʽ±à³ÌÒѾ­´æÔÚ¼¸Ê®ÄêÁË£¬µ«×î½ü¼¸Ä꣬ËüÃÇ»ñµÃÁËÔ½À´Ô½¶àµÄ¹Ø×¢£¬×îÖ÷ÒªµÄÔ­Òò£¬ÊÇËü¿ÉÒÔ×ÔÈ»µØ±àд²¢ÐгÌÐò¡£ÎÒ²¿·ÖµÄͬÒâJoshua BlochÇ¿µ÷ÔÚJavaÖÐÒýÈë±Õ°üµÄÎÊÌâÐèÒªÔÙÏëÒ»Ï루BGGAÌáÒéµÄ·½Ê½ÕæµÄºÜÔ㣩£¬ÖÁÉÙ±Õ°üµÄȱʧ£¬Ê¹µÃÔÚJavaÖÐ×öÈκÎÕæÕýµÄº¯Êýʽ±à³Ì¶¼ÊDz»¿ÉÄܵġ£
±Õ°üµÄ¶¨ÒåºÍÌØÐÔ£¬JavaÀïºÜÄÑÌå»á£¬ÒòΪJavaÀïûÓÐÕæÕýÒâÒåµÄ±Õ°ü£¬ÎÒÒ²ÊÇ´ÓJavaScriptÀï¶Ô±Õ°üÓÐÁË´óÖµÄÁ˽⡣JavaÊǸöÂß¼­Ñϸñ×ÔÇ¢µÄÓïÑÔ£¬ÑÏÃܵ½ÁËÒ»¶¨³Ì¶È£¬ÒÔÖÁÓÚÄ¿Ç°µÄJavaÀï¸ù±¾Ã»ÓбհüµÄÈÝÉíÖ®´¦——±Õ°üÖÐÒýÓõÄÍâΧ¾Ö²¿±äÁ¿£¬µ½µ×·ÅÔÚ¶ÑÕ»ÖУ¬»¹ÊÇÍйܶÑÖУ¿ËûÃǵÄ×÷ÓÃÓòºÍÉú´æÆÚÈçºÎ´¦Àí£¿ÓÖ¸ÃÈçºÎ±»GC»ØÊÕ£¿µ«±Õ°üȷʵÊǺö«Î÷¡£¼´Ê¹ÎÒ×ÔÈÏΪÊÇÒ»¸öJava³ÌÐòÔ±£¬ÔÚд¶àÁËJavaScript´úÂëÓֻص½Javaºó£¬¶ÔÓÚ²»ÄÜËæʱËæµØµÄдһ¶Î{}À¨ÆðÀ´µÄ´úÂë¿é£¬¸Ð¾õºÜ²»×ÔÓÉ¡£Õë¶Ô±Õ°üÎÊÌ⣬Java»¹ÊÇÓÐ×Ô¼ºÄܽ«¾ÍµÄ°ì·¨£¬ÄǾÍÊÇÄÚ²¿Àà¡£ÖÁÉÙ»¹ÓÐÄÚ²¿À࣬ÖÁÉÙÄÚ²¿À໹ÓÐÒ»²¿·ÖµÄ±Õ°üÌØÐÔ£¬Ê¹µÃһЩÓÅÑŵÄÉè¼Æ£¨È缯ºÏ¿ò¼Üµü´úÆ÷£©Äܹ»´æÔÚ¡£
2¡¢È±ÉÙÒ»µÈº¯Êý£ºÕâ¸öÎÊÌâÓëÇ°Ò»¸öÓÐЩ¹ØÁª£¬µ«ÎÒÈÏΪËü¸üÔã¸â¡£ÔÚJavaÀҪ´ïµ½ÀàËÆЧ¹ûµÄΨһ·½Ê½£¬ÊÇʹÓÃÖøÃûµÄ¡¢³óª±¯²ÒµÄµ¥·½·¨ÄäÃûÄÚ²¿À࣬µ«Õâ¿´ÉÏÈ¥µÄÈ·ÊÇÒ»¸ö×¾Áӵķ½·¨¡£ÉõÖÁÔÚC#ÖУ¬Ò²Í¨¹ý´úÀí»úÖÆ£¬ÌṩÁËÒ»¸ö¸üºÃµÄʵÏÖ¡£
ËùνһµÈº¯Êý£¬ÃæÏò¶ÔÏóµÄJavaûÓÐËƺõ²»ÄÜÇ¿Çó¡£µ«Ëü´øÀ´µÄÎÊÌ⣬¾ÍÊÇJavaÀïÓÐʱºò²ßÂÔģʽµÄ×¾ÁÓʵÏÖ¡£C#×÷Ϊһ¸ö¸ß¼¶ÓïÑÔ£¬ÓÖÊÇÇ¿ÀàÐ͵ģ¬Ò²Ò»Ñù¿ÉÒÔÓÐdelegate£¬ÄäÃû·½·¨£¬ÉõÖÁLambda±í´ïʽ¡£JavaÀï¾ÍÖ»ÄÜÉúÔì³öÒ»¸öµ¥·½·¨½Ó¿Ú£¬newÒ»¸öÎÞÒâÒåµÄ¶ÔÏó£¬À´³ÐÔØÆäÖеĺ¯Êý¡£
3¡¢Ô­ÉúÀàÐÍ£¨Primitive types£©£ºÈç¹ûÔÚJavaÖÐÒ»ÇнԶÔÏó£¬ÄÇÊǶàôÍêÃÀ°¡£¬µ«ËûÃÇÆ«Æ«²»ÕâÑùÉè¼Æ¡£Òò¶ø£¬ÕâÒ»µãµ¼ÖÂÁËһЩÎÊÌ⣬±ÈÈ磬²»ÄÜ°ÑÒ»¸öint·Åµ½¼¯ºÏ£¨Collection£©ÀÕâ¸öÔÚJava5ÖÐͨ¹ý×Ô¶¯×°ÏäÌØÐԵõ½Á˽â¾ö£¨ÏÂÃæ»áÌáµ½£©¡£ËüÒ²Ôì³ÉÁË´«ÖµÓë´«ÒýÓÃÉϵÄÀ§ÈÅ£¬Ô­ÉúÀàÐÍÊý¾ÝÊÇͨ¹ýÖµ´«¸ø·½·¨µÄ£¨¸´ÖÆÒ»·Ý¿½±´£¬È»ºó´«¸øº¯Êý£©£¬¶øÕæÕ


Ïà¹ØÎĵµ£º

JavaÖÐstaticÓ÷¨


ת×Ô
http://blog.pfan.cn/sword2008/13772.html
Ò»¡¢static
¡¡¡¡ÇëÏÈ¿´ÏÂÃæÕâ¶Î³ÌÐò£º
  public class Hello{
    public static void main(String[] args){
//(1)
      System.out.println("Hello,world!");   //(2)
    ......

Java ¼¼ÊõÊÇʲô£¿

Java ¼¼ÊõÊÇʲô£¿
Java ¼¼Êõ¼ÈÊÇÒ»Öָ߼¶µÄÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ£¬Ò²ÊÇÒ»¸öƽ̨¡£Java ¼¼Êõ»ùÓÚ Java ÐéÄâ»ú£¨Java virtual machine£¬JVM£©µÄ¸ÅÄî —— ÕâÊÇÓïÑÔÓëµ×²ãÈí¼þºÍÓ²¼þÖ®¼äµÄÒ»ÖÖת»»Æ÷¡£Java ÓïÑÔµÄËùÓÐʵÏÖ¶¼±ØÐëʵÏÖ JVM£¬´Ó¶øʹ Java ³ÌÐò¿ÉÒÔÔÚÓÐ JVM µÄÈκÎϵͳÉÏÔËÐС£
Java ±à³ÌÓïÑÔ£¨Java p ......

Java Applet³ÌÐòÉè¼Æ»ù´¡

Java Applet ÊÇÓÃJava ÓïÑÔ±àдµÄһЩСӦÓóÌÐò£¬ÕâЩ³ÌÐòÊÇÖ±½ÓǶÈëµ½Ò³ÃæÖУ¬ÓÉÖ§³ÖJavaµÄä¯ÀÀÆ÷£¨IE »ò Nescape£©½âÊÍÖ´ÐÐÄܹ»²úÉúÌØÊâЧ¹ûµÄ³ÌÐò¡£Ëü¿ÉÒÔ´ó´óÌá¸ßWebÒ³ÃæµÄ½»»¥ÄÜÁ¦ºÍ¶¯Ì¬Ö´ÐÐÄÜÁ¦¡£°üº¬AppletµÄÍøÒ³±»³ÆΪJava-poweredÒ³£¬¿ÉÒÔ³ÆÆäΪJavaÖ§³ÖµÄÍøÒ³¡£
    µ±Óû§·ÃÎÊÕâÑùµÄÍøҳʱ£¬Ap ......

JAVAÊÕ¼¯

1.vectorÊÇÏß³Ìͬ²½µÄ£¬ËùÒÔËüÒ²ÊÇḬ̈߳²È«µÄ£¬¶øarraylistÊÇÏß³ÌÒì²½µÄ£¬ÊDz»°²È«µÄ¡£Èç¹û²»¿¼Âǵ½Ï̵߳ݲȫÒòËØ£¬Ò»°ãÓÃarraylistЧÂʱȽϸߡ£ 2.Èç¹û¼¯ºÏÖеÄÔªËصÄÊýÄ¿´óÓÚÄ¿Ç°¼¯ºÏÊý×éµÄ³¤¶Èʱ£¬vectorÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ100%,¶øarraylistÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ50%.Èç¹ýÔÚ¼¯ºÏÖÐʹÓÃÊý¾ÝÁ¿±È½Ï´óµÄÊý¾Ý£¬ÓÃvecto ......

javaѧϰÍøÖ·

1.JavaѧϰÍøÕ¾:
JavaÖÐÎÄÊÀ½çÂÛ̳        http://www.chinajavaworld.com/index.jspa
JavaÊÀ¼ÍÍø              http://www.java2000.net/
Java ÖÐÎÄÕ¾            http://www.java-cn.com/
JavaѧϰÊÒ      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ