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

Java±ÊÊÔÌ⡾ת¡¿

1.д³ö³ÌÐòÔËÐнá¹û
  
public
class
TestString {
    public
static
void
link(String a){
         a+="World"
;
    }
    public
static
void
main(String []args){
         String a = "Hello"
;
         link(a);
         System.out.println(a);
    }
}
´ð: ÕâµÀÌ⿼Á½¸ö·½Ãæ:
1).¡¡String¶ÔÏóµÄÄÚÈÝÊDz»ÄܸıäµÄ,a+="World"²¢²»ÊÇ°ÑaËùÖ¸¶ÔÏó¸Ä±ä,
¡¡¡¡¶øÊÇÏÈÉú³ÉÒ»¸öÁÙʱString¶ÔÏó,ÆäֵΪa+"World",È»ºóÔÚ°ÑÕâ¸öÁÙʱ
¡¡¡¡¶ÔÏ󸳸øa.
2).¡¡JavaÖк¯Êý²ÎÊý´«µÝ·½Ê½ÎªCall by value,link·½·¨ÖлáÉú²úaµÄÒ»¸ö
¡¡¡¡¿½±´,ͬÑùÖ¸ÏòaËùÖ¸µÄ¶ÔÏó,×ÛºÏÒÔÉÏÁ½µã,µÃ³ö½á¹ûΪ Hello
 
2. д³öÏÂÃæ´úÂëµÄ½á¹û
 
System.out.println(
"
ja
"
+
"
va
"
 
==
 
"
java
"
);
 
´ð:"=="ÓÃÀ´±È½Ï¶ÔÏóµÄÒýÓÃ,¶øequals()ÓÃÀ´±È½Ï¶ÔÏóµÄÄÚÈÝ,µ«ÊÇÈç¹ûÊÇ×Ö·û´®³£Á¿,ÓÃ"=="Ò²¿ÉÒԱȽÏÄÚÈÝ
ÊÇ·ñÏàµÈ,"ja"+"va"ºÍ"java"¶¼ÊÇ×Ö·û´®³£Á¿,Òò´Ë½á¹ûΪtrue
ͬÀí,ÏÂÃæ´úÂë½á¹ûÒ²ÊÇtrue
 
final
 String str 
=
 
"
java
"
;
System.out.println(str
==
"
java
"
)
 
3.¼Ì³ÐʱºòÀàµÄÖ´ÐÐ˳ÐòÎÊÌâ,Ò»°ã¶¼ÊÇÑ¡ÔñÌâ,ÎÊÄ㽫»á´òÓ¡³öʲô?
public
class
Parent {
    //1
    static
int
a = 1;
    //2
    static
  
    {
       a=10;
       System.out.println("parent static
code"
);
    }
    //4
    public
Parent(){
      System.out.println("Parent constructor


Ïà¹ØÎĵµ£º

ËÄ¡¢¶ÔjavaÈëÃŵļ¸µã½¨Òé

   òËƱȽ϶࣬²»¹ý¶à¶®µã£¬Ò²Ã»Ê²Ã´²»ºÃ¡£
 1¡¢ÊìϤjdbc£¬»áÓÃjdbc¡£
 2  »áдsqlºÍ´æ´¢¹ý³Ì¡£
 3¡¢ÊìϤswing¿Ø¼þ¡¢²»¹ý²»½¨ÒéÓÃswing¿ª·¢¿Í»§¶Ë
 4  ÊìϤ swt£¬rcp ¿Í»§¶Ë£¬½¨ÒéÓÃrcp¿ª·¢¿Í»§¶Ë
 5  ÊìϤjsp servlet
 6  ÊìϤtomcat£¬ÖÁÉÙÖªµÀweb¡£x ......

°Ë Ò»¸öJAVA°¸Àý

   ¼ÙÉèÐèÇó(ÈçÓÐÀ×ͬ£¬´¿ÊôÇɺÏ)£º
     ÓÐÒ»¸öÈ«¹úÐԵĴóÆóÒµ£¬ÔÚÈ«¹ú¸÷µØÐèÒª²¿ÊðÉÏǧ̨¿Í»§»ú£¬ÕâЩ¿Í»§»úÐèҪʵʱÓë·þÎñÆ÷½»»¥£¬½øÐÐÊý¾Ý´¦Àí¡£ÊµÊ±ÐÔÒªÇó¸ß£¬°²È«ÐԸߣ¬ÒªÇóÖ§³ÖÊÂÎñ£¬ÒÔ¼°²»ÖжϷþÎñ¡£
   
Ó²¼þ²¿Êð£º
  1¡¢ 3000̨¿Í»§»ú
  2¡¢ 10̨· ......

Java»ù´¡ÖªÊ¶µÄÈýÊ®¸ö¾­µäÎÊ´ð

1¡¢ÃæÏò¶ÔÏóµÄÌصã
³éÏó£º
³éÏóÊÇ»òÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êµÄÎ޹صÄÒòËØ£¬Ò»±ß³ä·Ö¿¼ÂÇÓйصÄÄÚÈÝ¡£³éÏó²¢²»Äܽâ¾öÄ¿±êÖÐËùÓеÄÎÊÌ⣬ֻÄÜÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ºöÂÔÆäËûµÄ²¿·Ö¡£³éÏó°üº¬Á½¸ö·½Ã棺һÊǹý³Ì³éÏó£»Ò»ÊÇÊý¾Ý³éÏó¡£
¼Ì³Ð
¼Ì³ÐÊÇÒ»ÖÖÁª½ÓÀàµÄ²ã´ÎÄ£ÐÍ£¬ÔÊÐíºÍ¹ÄÀøÀàµÄÖØÓã¬ÌṩÁËÒ»ÖÖÃ÷È·µÄ¹²ÐԵķ½·¨¡£¶ÔÏóµ ......

Berkeley DB JAVA°æ±¾ÖУ¬ÀàÔöÇ¿Æ÷µÄʹÓÃ

¾ÝÎĵµËù˵£¬ÀàÔöÇ¿Æ÷±ÈÓôúÀíµÄ·½Ê½ËÙ¶ÈÉÏÓÐÓÅÊÆ¡£
ÓÐÁ½ÖÖ·½Ê½£¬
µÚÒ»ÖÖÊÇÔÚÀà¼ÓÔØʱ¶¯Ì¬´¦Àí£¬Õâ¸ö¶ÔÏÖÓгÌÐò²»ÓÃÐ޸ġ£Ö»ÐèÒª¸ÄÏÂÔËÐеÄjava½Å±¾¼´¿É
¶ÔÓÚJava 1.5ÈçÏÂËùʾ
java -javaagent:lib/je-<version>.jar=enhance:packageNames ...
je-<version>.jar ¾ÍÊÇBerkeley DB JAVA¿âµÄÃû×Ö¡£ packageNa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ