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

¹ØÓÚjavaÖеIJÎÊý´«µÝ

ÎÊÌâµÄÒýÈëÊÇÒòΪÏÂÎçÔÚȺÀï¿´µ½ÁËÒ»¸öÍøÓѵÄÎÊÌ⣺
¸ø¶¨ÈçÏÂJava ´úÂ룬±àÒëÔËÐкó£¬Êä³ö½á¹ûÊÇ£¨  £©¡£
public class Test {
    public static void main(String [ ] args) {
        StringBuffer a = new StringBuffer(“A”);
        StringBuffer b = new StringBuffer(“B”);
        operate(a , b);
        System.out.println(a + ”,” + b);
    }
    static void operate(StringBuffer x , StringBuffer y) {
        x.append(y);
        y = x;
    }
}
A. A,B    B. AB,B    C. A,AB     D.AB,AB
ÅóÓÑ¿ÉÒԲ²ÂÕâ¸ö´ð°¸£¬ÎÒÒ²Ïë¸æËß´ó¼Ò£¬´ð°¸ÊÇ£ºB¡£Ò²ÐíÓÐÈË»áºÜ¾ªÑÈ£¬Ò²ÐíÓÐÈË»áºÜµ­¶¨¡£ÒòΪStringBufferÊÇÒ»¸öÀ࣬¶ÔÓÚÀàµÄʹÓã¬Í¨¹ýnew£¬ÔÚ¶ÑÖд´½¨Ò»¸öÀàµÄʵÀý£¬ÀûÓÃÒ»¸öÒýÓÃÀ´ÊµÏÖ¶ÔÕâ¸ö¶ÔÏóµÄ²Ù×÷¡£µ±°ÑÒ»¸öÒýÓõ±×÷²ÎÊý´«µÝµ½Ò»¸öº¯ÊýÖеÄʱºò£¬C++²ÉÈ¡µÄÊÇ£ºÕâ¸ö²ÎÊýÊÇÒ»¸öµØÖ·¡£¶øÔÚjavaÖÐûÓеØÖ·Õâ¸ö¸ÅÄһÇж¼ÊÇÖµ´«µÝ£¬ÄÇôÕâÀïÓÖÊÇÔõô¿ØÖƵġ£
Ê×ÏÈ£¬ÎÒ×öÁËÒ»¸ö²âÊÔ£º 
public class Text {
    public static void main(String[] args) {
        String s = "b";
        f(s);
        System.out.println(s);
    }
    static void f(String s) {
        s = "c";
    }
} /* output
b
*///~
´Ó½á¹û¿ÉÒÔ¿´³ö£ºÐβεÄЧ¹û²¢Ã»ÓÐ×÷Óõ½Êµ²ÎÖС£ÎÒÃǼÌÐø¿´ÏÂÒ»¶Î´úÂ룺
public class Text {
    String s = "b";
    public static void main(String[] args) {
        Text t = new text();
        f(t.s);
       


Ïà¹ØÎĵµ£º

javaÊý¾Ý¿âÁ¬½Ó


MySQL£º
String Driver="com.mysql.jdbc.Driver"; //Çý¶¯³ÌÐò
String URL="jdbc:mysql://localhost:3306/db_name"; //Á¬½ÓµÄURL,db_nameΪÊý¾Ý¿âÃû
String Username="username"; //̞
String Password="password"; //ÃÜÂë
Class.forName(Driver).new Instance();
......

JAVA ×Ö·û´®±àÂë×ܽá

 String newStr = new String(oldStr.getBytes(), "UTF-8");    
 
javaÖеÄStringÀàÊÇ°´ÕÕunicode½øÐбàÂëµÄ£¬µ±Ê¹ÓÃString(byte[] bytes, String encoding)¹¹Ôì×Ö·û´®Ê±£¬encodingËùÖ¸µÄÊÇbytesÖеÄÊý¾ÝÊÇ°´ÕÕÄÇÖÖ·½Ê½±àÂëµÄ£¬¶ø²»ÊÇ×îºó²úÉúµÄStringÊÇʲô±àÂ뷽ʽ£¬»»¾ä»°Ëµ£¬ÊÇÈÃϵ ......

Java¿ª·¢Èý½£¿ÍJSF2.0¡¢EJB3.1¡¢JPA2.0ÏÖ×´¼°·¢Õ¹

http://developer.51cto.com/art/200906/130976.htm
JSF 2.0
¾¡¹Ü Java ÔÚչʾ²ã¿ò¼ÜÉϾºÕùµÄ·Ç³£¼¤ÁÒ£¬µ« JSF ÈÔÈ»¹ÌÊØ×Å×Ô¼ºµÄÁìµØ¡£ËäÈ»Óкܶà¹ØÓÚ JSF µÄÒ×ÓÃÐԺͽ¡×³ÐÔµÄÖÊÒÉÉù£¬µ« JSF2.0 ¾ÍÊÇΪÕýÃæ½â¾öÕâЩÎÊÌâ¶øÌá³öÀ´µÄ£¬ËüµÄÒ×Ó㬴´ÐÂÒÔ¼°¿ÉÀ©Õ¹µÄÌØÐÔ°üÀ¨£º
JSF Õýʽ½« Facelets ×÷ΪÊÓͼ¼¼Êõ¡£Ò²ÐíÄã²»ÊìÏ ......

JavaͼÐνçÃæ±à³Ì×ܽá

1. ²¼¾Ö¹ÜÀíÆ÷
ÈÝÆ÷Àï×é¼þµÄ´óСºÍλÖÃÊÇÓɲ¼¾Ö¹ÜÀíÆ÷À´¾ö¶¨µÄ¡£ÈÝÆ÷¶Ô²¼¾Ö¹ÜÀíÆ÷µÄÌض¨ÊµÀý±£³ÖÒ»¸öÒýÓ㬵±ÈÝÆ÷ÐèÒª¶¨Î»Ò»¸ö×é¼þʱ£¬Ëü½«µ÷Óò¼¾Ö¹ÜÀíÆ÷À´Íê³É£¬¾ö¶¨Ò»¸ö×é¼þµÄ´óСʱҲÊÇÈç´Ë¡£
 
ÔÚawtÖÐÓÐÎåÖÖ²¼¾Ö¹ÜÀíÆ÷
BorderLayOut
FlowLayOut
GridLayOut
GardLayOut
GridBagLayOut
 
1. & ......

´«ÖDz¥¿ÍJavaÅàѵ Dom4j

    ´Ó5ÔÂ5ºÅ½øÈë¾ÍÒµ°àµ½ÏÖÔÚËÄÌìµÄʱ¼äÁË£¬ÉÏÁËÕ⼸Ìì¿Î·¢ÏÖ¾ÍÒµ°àµÄÇ¿¶ÈÕæµÄºÜ´ó£¬²»ÏñÒÔÇ°»ù´¡°àµÄʱºòÄÇô»¹±È½ÏÇáËÉ£¬ÒѾ­½¥½¥¸Ð¾õµ½Á˳ÔÁ¦£¬ÒòΪÏÖÔÚÉÏ¿ÎÐèÒª½²½âµÄ֪ʶµãÌ«¶à£¬ÓÐʱºòÏÂÎçÀÏʦ½²µ½6µã¶àÖÓ²ÅÏ¿Σ¬¿ÎÉϵÄÁ·Ï°Ê±¼äÔ½À´Ô½ÉÙÁË£¬Ö»ÄÜ×Ô¼ºÀûÓÿκóµÄʱ¼ä¶àÁ·Ï°Êµ¼ù£¬Ðí¶à¶«Î÷»¹¶¼ÊǵÚÒ»´Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ