Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÓïÑÔSUN¹«Ë¾±ê×¼±àÂë¹æ·¶

JavaÓïÑÔ±àÂë¹æ·¶(Java Code Conventions)SUN±ê×¼
 
 
1 ½éÉÜ(Introduction)1.1 ΪʲôҪÓбàÂë¹æ·¶(Why Have Code Conventions)1.2 °æȨÉùÃ÷(Acknowledgments)2 ÎļþÃû(File Names)2.1 Îļþºó׺(File Suffixes)2.2 ³£ÓÃÎļþÃû(Common File Names)3 Îļþ×éÖ¯(File Organization)3.1 JavaÔ´Îļþ(Java Source Fi ......

´ÓѧJavaÖÐÈÏʶÁËÕâλû¼û¹ýµÄÀÏʦ

ËïöÎÀÏʦ´Ó98Ä꿪ʼ´ÓÊÂÈí¼þ¿ª·¢¹¤×÷£¬¸ºÔ𲢿ª·¢µÄÏîÄ¿ÓУº
¡¡¡¡
1999Ä꣬²ÉÓÃsocket±à³ÌÍê³ÉÓïÒôË«Ïò·­ÒëϵͳµÄÍøÂç´«Ê书ÄÜ¡£
¡¡¡¡2000Äê³õ£¬´ÓÊÂÓïÒôË«Ïò·­ÒëϵͳµÄÕûÌ忪·¢£¬Ê¹ÓÃvcºÍ±ê×¼c£¬´ËÏîÄ¿¾ßÓм«¸ßµÄ¼¼Êõº¬Á¿£¬ÆäÖаüÀ¨ÁËÓïÒôʶ±ð¼¼Êõ£¬ÓïÒôºÏ³É¼¼Êõ£¬»úÆ÷·­Òë¼¼Êõ£¬¶àýÌå²¥·ÅÓë´«Êä¼¼Êõ¡£²¢ÓÉ´Ë»ñµÃÁËÐÅÏ ......

JavaÉè¼Æģʽ ¹¤³§·½·¨£¨Factory Method£©Ä£Ê½

1.2 ¹¤³§·½·¨£¨Factory Method£©Ä£Ê½
 
    ¹¤³§·½·¨Ä£Ê½ÊÇÀàµÄ´´½¨Ä£Ê½£¬ÓÖ½ÐÐéÄâ¹¹Ôì×Ó£¨Virtual Constructor£©Ä£Ê½»òÕ߶à̬ÐÔ¹¤³§£¨Polymorphic Factory£©Ä£Ê½¡£
    ¹¤³§·½·¨Ä£Ê½µÄÓÃÒâÊǶ¨ÒåÒ»¸ö´´½¨²úÆ·¶ÔÏóµÄ¹¤³§½Ó¿Ú£¬½«Êµ¼Ê¹¤×÷ÍƳٵ½×ÓÀàÖС£
 
1.2.1 ¹¤ ......

Java EE 6ÒýÈëµÄJPA 2.0ËÄ´óÐÂÌØÐÔÏê½â

¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿Java EE 5ƽ̨ÒýÈëÁËJava³Ö¾Ã»¯API£¨Java Persistence API£¬JPA£©£¬ËüΪJava EEºÍJava SEÓ¦ÓóÌÐòÌṩÁËÒ»¸ö»ùÓÚPOJOµÄ³Ö¾Ã»¯Ä£¿é¡£JPA´¦Àí¹ØϵÊý¾ÝÓëJava¶ÔÏóÖ®¼äµÄÓ³É䣬Ëüʹ¶ÔÏó/¹Øϵ£¨O/R£©Ó³Éä±ê×¼»¯£¬JPAÒѾ­±»¹ã·º²ÉÓã¬ÒѾ­³ÉΪÊÂʵÉϵÄO/R³Ö¾Ã»¯ÆóÒµ±ê×¼¡£
Java EE 6´øÀ´ÁËJPAµÄ×îа汾 &mdash ......

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

1. ²¼¾Ö¹ÜÀíÆ÷
ÈÝÆ÷Àï×é¼þµÄ´óСºÍλÖÃÊÇÓɲ¼¾Ö¹ÜÀíÆ÷À´¾ö¶¨µÄ¡£ÈÝÆ÷¶Ô²¼¾Ö¹ÜÀíÆ÷µÄÌض¨ÊµÀý±£³ÖÒ»¸öÒýÓ㬵±ÈÝÆ÷ÐèÒª¶¨Î»Ò»¸ö×é¼þʱ£¬Ëü½«µ÷Óò¼¾Ö¹ÜÀíÆ÷À´Íê³É£¬¾ö¶¨Ò»¸ö×é¼þµÄ´óСʱҲÊÇÈç´Ë¡£
 
ÔÚawtÖÐÓÐÎåÖÖ²¼¾Ö¹ÜÀíÆ÷
BorderLayOut
FlowLayOut
GridLayOut
GardLayOut
GridBagLayOut
 
1. & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ