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

ÕâÀïÖ÷Òª¶Ô8ÖÖÅÅÐòËã·¨×ö¸ö×ܽᣬ·Ö±ðÊDzåÈëÅÅÐò£¬Ñ¡ÔñÅÅÐò£¬Ã°ÅÝÅÅÐò£¬Ï£¶ûÅÅÐò£¬¹é²¢ÅÅÐò£¬¶ÑÅÅÐò£¬¿ìËÙÅÅÐòÒÔ¼°»ùÊýÅÅÐò¡£
1¡¢ ²åÈëÅÅÐò
±È½ÏºÍ½»»»µÄʱ¼ä¸´ÔÓ¶ÈΪO(n^2)£¬Ëã·¨×ÔÊÊÓ¦£¬¶ÔÓÚÊý¾ÝÒÑ»ù±¾ÓÐÐòµÄÇé¿ö£¬Ê±¼ä¸´ÔÓ¶ÈΪO(n)£¬Ëã·¨Îȶ¨£¬¿ªÏúºÜµÍ£¬ÊʺÏÓÚÊý¾ÝÒÑ»ù±¾ÓÐÐò»òÕßÊý¾ÝÁ¿Ð¡µÄÇé¿ö¡£
public void ins ......

java ÊÂÎñ´¦Àí

Èç¹û¶ÔÊý¾Ý¿â½øÐжà´Î²Ù×÷,ÿһ´ÎµÄÖ´Ðлò²½Ö趼ÊÇÒ»¸öÊÂÎñ.Èç¹ûÊý¾Ý¿â²Ù×÷ÔÚijһ²½Ã»ÓÐÖ´Ðлò³öÏÖÒì³£¶øµ¼ÖÂÊÂÎñʧ°Ü,ÕâÑùÓеÄÊÂÎñ±»Ö´ÐÐÓеľÍûÓб»Ö´ÐÐ,´Ó¶ø¾ÍÓÐÁËÊÂÎñµÄ»Ø¹ö,È¡ÏûÏÈÇ°µÄ²Ù×÷.....
JavaBeanÖÐʹÓÃJDBC·½Ê½½øÐÐÊÂÎñ´¦Àí
public int delete(int sID) {
¡¡ dbc = new DataBaseConnection();
¡¡ Connect ......

java Êý×ÖÖ¤ÊékeytoolÓ÷¨

Java ÖÐµÄ keytool.exe £¨Î»ÓÚ JDK\Bin Ŀ¼Ï£©¿ÉÒÔÓÃÀ´´´½¨Êý×ÖÖ¤Ê飬ËùÓеÄÊý×ÖÖ¤ÊéÊÇÒÔÒ»ÌõÒ»Ìõ(²ÉÓñðÃûÇø±ð)µÄÐÎʽ´æÈëÖ¤Êé¿âµÄÖУ¬Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé°üº¬¸ÃÌõÖ¤ÊéµÄ˽Կ£¬¹«Ô¿ºÍ¶ÔÓ¦µÄÊý×ÖÖ¤ÊéµÄÐÅÏ¢¡£Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé¿ÉÒÔµ¼³öÊý×ÖÖ¤ÊéÎļþ£¬Êý×ÖÖ¤ÊéÎļþÖ»°üÀ¨Ö÷ÌåÐÅÏ¢ºÍ¶ÔÓ¦µÄ¹«Ô¿¡£
KeytoolÊÇÒ»¸öJavaÊý¾ÝÖ ......

java FTP²Ù×÷

 ¼òµ¥µÄдÁ˸öjava¶ÔftpµÄ²Ù×÷
ÓõÄÊÇcommons-net.jar°ü
FTPProxy.java
public class FTPProxy{
public FTPProxy()
{
super();
ftpClient = new FTPClient();
}
public FTPProxy(FTPBean entity)
{
this();
this.entity = entity;
}
private FTPBean entity;
private FTPClient ftpCli ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ