Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Óʼþ·þÎñÆ÷Ö®james°²×°ÅäÖÃ


James Óʼþ·þÎñÆ÷µÄ°²×°ºÍÅäÖÃ
»·¾³:
Óʼþ·þÎñÆ÷:
²Ù×÷ϵͳ:REDHAT LINUX AS 4
IP:192.168.1.108
×ÓÍøÑÚÂë:255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¿Í»§¶Ë:
²Ù×÷ϵͳ:windows 2003
IP :192.168.1.2
×ÓÍøÑÚÂë:255.255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¼òµ¥½éÉÜÒ»ÏÂÓʼþ·þÎñÆ÷µÄÅäÖû·¾³
ÒѾ­° ......

javaÃæÊÔÖÐҪעÒâµÄµØ·½


1.JavaÀïÃæÊ¹ÓÃ
static
·½·¨ÓÐʲôºÃ´¦£¿
´ð£ºÔÚÏîÄ¿ÖУ¬¶ÔÓÚÆµ·±Ê¹Óõķ½·¨£¬Ê¹ÓÃstatic
ÐÞÊλáÌá¸ßЧÂÊÂ𣿠
¾²Ì¬·½·¨µÄºÃ´¦¾ÍÊDz»ÓÃÉú³ÉÀàµÄʵÀý¾ÍÄÜÖ±½Óµ÷ÓúͶÔÏóÎÞ¹Ø
Äã²»ÓÃÉú³É¶ÔÏó¾ÍÄÜÓÃÕâ¸ö·½·¨ÁË£¬²»ÊÇÌá¸ßЧÂÊ£¿ÄãÉú³É¶ÔÏóµÃÕ¼ÓÃÄÚ´æ¿Õ¼ä°¡ 
ÖÁÓÚ¾²Ì¬ÊôÐÔÒ²ÄÜÌá¸ßЧÂÊ£¬ÄãÆÕͨµÄÊôÐÔÿ¸öÀà¶Ô ......

JAVAѧϰ±Ê¼Ç£¨Ò»£© Òì³£´¦Àí

Òì³£ÊÇÖ¸³ÌÐòÔËÐÐÆÚ¼ä³öÏÖµÄÎÊÌâ¡£ÔÚд³ÌÐòʱ£¬È·Êµ¿ÉÒÔд´úÂë²âÊÔ³ÌÐòÊÇ·ñÕýÈ·Ö´ÐУ¬Èç¹ûûÓÐÖ´ÐУ¬ÔòÖ´ÐдíÎó´¦Àí¡£¾¡¹ÜÕâÖÖÐÎʽµÄ´íÎó´¦ÀíÄܹ»Æðµ½×÷Ó㬵«³ÌÐòÂß¼­Óë´íÎó´¦ÀíÒ»Æð»ìÓ㬻áʹµÃ³ÌÐòÄÑÒÔÔĶÁ‘Ð޸ġ£Èç¹ûDZÔÚµÄÎÊÌ⼫ÉÙ·¢Éú£¬Ôò»ìÓóÌÐòºÍ´íÎó´¦ÀíÂß¼­½²½µµÍ³ÌÐòµÄÐÔÄÜ¡£Òì³£´¦Àíʹ³ÌÐòÔ±Äܹ»´Ó³ÌÐòÖ ......

javaÐÂÊÖѧϰָµ¼

ת£ºJavaѧϰ·Ïßͼ£¬×¨ÎªÐÂÊÖ¶¨ÖƵÄJavaѧϰ¼Æ»®½¨Òé ÊÕ²Ø ×ª×Ô£ºhttp://tieba.baidu.com/f?kz=692446591 ÔõôѧϰJava£¬ÕâÊǺܶàÐÂÊÖ¾­³£»áÎÊÎÒµÄÎÊÌ⣬ÏÖÔÚÎÒ¼òµ¥ÃèÊöÏÂÒ»¸öJava³õѧÕßµ½¾ÍҵҪѧµ½µÄһЩ¶«Î÷£º Ê×ÏÈÒªÃ÷°×JavaÌåϵÉè¼Æµ½µÃÈý¸ö·½Ã棺J2SE,J2EE,J2ME£¨KJAVA£©¡£J2SE£¬Java 2 Platform Standard Edition£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ