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

Java ³ÌÐòÄÚ´æ·ÖÎö

   java³ÌÐòÄÚ´æÖ÷Òª·ÖΪÁË2¸ö²¿·Ö£¬°üÀ¨ stack segment(Õ»ÄÚ´æ)¡¢heap segment(¶ÑÄÚ´æ)¡£ 
    ÔÚ·ÖÎöJava³ÌÐòÄÚ´æ·ÖÅäÇé¿öʱ£¬ÎÒÃÇ´ÓÏÂÃæÕâ¸ö¾­³£±»Ê¹ÓõÄÀý×Ó¿ªÊ¼°É¡£ 
    ÏÂÃæ³ÌÐò½«´òӡʲôÄØ£¿ 
   
Java´úÂë 
String s1 = new String("abc");  
        String s2 = new String("abc");  
        System.out.print(s1.equals(s2)); // 1  
        System.out.print(s1 == s2); // 2  
      
    ¿ÉÄÜ´ó¼ÒÐÄÖÐÒѾ­Óдð°¸ÁË£¬µÚ1ÌõÓï¾ä´òÓ¡µÄÊÇtrue£¬µÚ¶þÌõÓï¾ä´òÓ¡µÄfalse£¬Ã»´í£¬ÕýÈç´ó¼ÒËùÏ룬´òÓ¡½á¹û¾ÍÊÇÕâÑù¡£ÄÇô£¬´ó¼ÒÊÇ·ñÖªµÀΪʲôµÚ2ÌõÓï¾ä´òÓ¡µÄÊÇfalseÄØ£¿ÈÃÎÒÃÇÀ´¿´¿´Õâ¸ö³ÌÐòÖеÄÊý¾ÝÔÚÄÚ´æÖзÖÅäµÄÇé¿ö°É¡£ 
    Ê×ÏÈ£¬ÎÒÃÇ·ÖÎöµÚÒ»ÌõÓï¾äString s1=new String("abc"); 
    ÆäʵÕâÌõÓï¾äÊÇÏÂÃæÁ½ÌõÓï¾äµÄËõд£¬ 
    String s1; //1 
    s1=new String(“abc”); //2 
    1. ÔÚÕ»ÄÚ´æÖж¨ÒåÒ»¸öÃûΪs1µÄ¶ÔStringÀàµÄ¶ÔÏñÒýÓñäÁ¿ 
    2. ÔÚ¶ÑÄڴ濪±ÙÁËÒ»¿é¿Õ¼äÓÃÓÚ´æ·Å×Ö·û´®“abc”£¬½«1¶¨ÒåµÄÒýÓñäÁ¿s1Ö¸Ïò¸Ã¿Õ¼ä¡£ 
    ͬÀí£¬µÚ¶þÌõÓï¾äString s2=new String("abc");Ò²×öÁËͬÑùµÄÊÂÇ飬¶¨ÒåÒýÓñäÁ¿£¬Ö¸Ïòпª±Ù³öÀ´µÄ¿Õ¼ä¡£Ëµµ½ÕâÀï´ó¼Ò¿ÉÄÜÐÄÖÐÒѾ­Óдð°¸ÁË£¬ÎªÊ²Ã´s1!=s2ÄØ£¿ÒòΪËüÃÇÖ¸ÏòµÄÊÇÁ½¿é²»Í¬µÄ¶ÑÄÚ´æ¿Õ¼ä¡£ 
    Æäʵ£¬ÔÚjavaÖÐnew¹ý³Ì·ÖÅäÄÚ´æÇé¿ö¶¼ºÍÉÏÃæÀàËÆ£¬ÏÈÔÚÕ»ÄÚ´æÖж¨ÒåÒýÓã¬È»ºóÔÚ¶ÑÄÚ´æÖпª±Ù¿Õ¼ä£¬´æ·ÅÊý¾Ý£¬×îºóÈÃÒýÓÃÖ¸Ïò¸Ã¿Õ¼ä£¬Èç¹ûÒ»¸öÒýÓÃûÓÐÖ¸ÏòÈκοռ䣬ÄÇôÔÚʹÓÃÕâ¸öÒýÓñäÁ¿Ê±£¬³ÌÐò½«Å׳öÖøÃûµÄNullPointerException£¬Æäʵ´ÓÕâ¸öÒì³£Ãû×ÖÎÒÃÇÒ²ÄÜÇåÎúÖªµÀ²úÉú¸ÃÒì³£µÄÔ­Òò£¬²»ÊÇÂ𣿠
    ÊìϤÁËÉÏÃæÕâ¸öÀý×Ó£¬»ù±¾ÉÏ´ó¼Ò¶ÔJava³ÌÐòÄÚ´æ·ÖÅäÇé¿ö£¬ÒѾ­ÈëÃÅÁË£


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

¹ØÓÚjava¿ª·¢Óʼþ½ÓÊÕ³ÌÐòµÄÒ»µã×ܽá

 ÓÃjava¿ª·¢Óʼþ½ÓÊÕ³ÌÐòÐèÒªÓõ½javamail°ü£¬×ÊÔ´µØÖ·£ºhttp://java.sun.com/products/javamail/£¬×îаæÊÇ JavaMail 1.4.3 £¬ÏÂÔصØÖ·ÊÇ£ºhttp://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/javamail-1.4.3.zip?BundledLineItemUUID=gqFIBe.oRjUAAAEl1r4 ......

´«ÖDz¥¿Íjavaѧϰ4

½ñÌìÎÒѧϰÁË·´ÉäÓë¶àÏ̵߳Ä֪ʶ
 
·´É䣺Class cls1=Date.class//×Ö½ÚÂë1£»
         Class cls2=Person.class//×Ö½ÚÂë2£»
 
P1.getClass();//µÃµ½×Ö½ÚÂë
Class.forName(“java.lang.String”) //µÃµ½Õâ¸öÀàµÄ×Ö½ÚÂë
 
ºǫ́Ïß³ÌÓëÁªºÏÏß³Ì
l & ......

Java³ÌÐòͨ¹ýwekaµ÷ÓÃlibsvmµÄ·½·¨

 Java³ÌÐòͨ¹ýwekaµ÷ÓÃlibsvmµÄ·½·¨ ÊÕ²Ø
 
ÔÚ¡¶ÔÚeclipseÏÂʹÓÃjavaµ÷ÓÃweka¡·µÄ»ù´¡ÉÏ£¬Ê¹Óá¶ÔÚeclipseÏÂʹÓÃjavaµ÷ÓÃweka¡·ÖнéÉܵķ½·¨Ìí¼ÓlibsvmµÄÁ½¸öjar°ü£¨libsvm.jarºÍwlsvm.jar£©¼°wekaµÄjar°ü£¬ÕâÈý¸ö°ü¿ÉÒÔ´ÓÕâÀïÏÂÔØ£ºhttp://download.csdn.net/source/1749854¡£
È»ºóÔÚimportÖîÓï¾äÏÂÌí¼Ó£º
......

phpºÍjavaÉÏ´«ÎļþµÄ·½·¨

javaÉÏ´«Îļþ
ÐèÒªµÄµÚÈý·½jar°üÓУ¨ÕâÀïʹÓÃapacheµÄ£©
apacheµÄcommons-fileupload£¨ÉÏ´«Óã©£¬commons-io £¨listenerÇåÀíÀàÓã© £¬ commons-beanutils£¨¿ÉÑ¡£©
¾ßÌå²Ù×÷
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
if(ServletFileUp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ