🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #23112

���ʣ��������н��Ϊʲô������

#23112
From: nick
Date: Wed, 20 Aug 2003 04:16
27 lines
1452 bytes
public class Test {
    static private String b = "a";
//  static private StringBuffer sb = "a";
    static private void Motifier1(String mb) {
        mb = "b";
    }
//  private void Motifier2(StringBuffer mb2) {
//      mb2 = "b";
//  }
    public static void main(String[] args) {
        String db = b;
//      StringBuffer dsb = sb;
        Motifier1(b);
//      Motifier2(sb);
        System.out.println("db = " + db);
        System.out.println("b = " + b);
//      System.out.println("dsb = " + dsb);
//      System.out.println("sb = " + sb);
    }
}

���db �� ��a��
b �� ��a "


--
�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: whiIe]
Technical Details
Message-ID: <47j0VL$9iL@bbs.zju.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!ZJUBBS

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f6cb0,bd7c76a06e9fe684,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-08-19 21:18:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!ZJUBBS
From: whiIe.bbs@bbs.zju.edu.cn (nick)
Newsgroups: cn.bbs.comp.lang.java
Subject: ���ʣ��������н��Ϊʲô������
Date: 20 Aug 2003 04:16:07 GMT
Organization: �㽭��ѧ���ɰٴ�
Message-ID: <47j0VL$9iL@bbs.zju.edu.cn>
X-Filename: Java/M.1061352933.A
Lines: 27