Java鐭ヨ瘑鍒嗕韩缃?- 杞绘澗瀛︿範浠庢寮€濮嬶紒聽聽聽聽

SVN瑙嗛鏁欑▼(缁撳悎eclipse,idea)鍏嶈垂棰嗗彇

姣曡浠e仛锛屽寘鏌ラ噸锛?a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1982956321&site=qq&menu=yes">鑱旂郴浜篞Q锛?982956321锛? 姣曡澶х

棰嗗彇鍥藉唴浼樼灏变笟锛屽姞钖紝璺虫Ы椤圭洰璇剧▼婧愮爜-vue2+jwt+springboot+mybaits鍓嶅悗绔垎绂婚€氳褰曠郴缁熻绋?/h2>

SpringBoot鎵撻€犱紒涓氱骇杩涢攢瀛?/h2>

Java1234 VIP璇剧▼

棰嗗彇寰俊鎵爜鐧诲綍Java瀹炵幇瑙嗛鏁欑▼

Java1234鑷冲皧VIP锛堢壒浠锋椿鍔級

Java鍩虹闈㈣瘯棰?PDF 涓嬭浇


鍒嗕韩鍒帮細
鏃堕棿:2020-05-05 09:35鏉ユ簮:http://vitrailad.com 浣滆€?灏忛攱  渚垫潈涓炬姤
Java鍩虹闈㈣瘯棰?PDF 涓嬭浇
澶辨晥閾炬帴澶勭悊
Java鍩虹闈㈣瘯棰?PDF 涓嬭浇

鏈珯鏁寸悊涓嬭浇锛?/strong>
閾炬帴锛?a href="https://pan.baidu.com/s/11a7le5W9573ZkIGNuD2OQQ" target="_blank">https://pan.baidu.com/s/11a7le5W9573ZkIGNuD2OQQ 
鎻愬彇鐮侊細m1e8
 
鐩稿叧鎴浘锛?/strong>
 
涓昏鍐呭锛?/strong>

1.寮曠敤浼犻€掑拰鍊间紶閫?/div>
杩欓噷瑕佺敤瀹為檯鍙傛暟鍜屽舰寮忓弬鏁扮殑姒傚康鏉ュ府鍔╃悊瑙o紝
鍊间紶閫掞細
鏂规硶璋冪敤鏃讹紝瀹為檯鍙傛暟鎶婂畠鐨勫€间紶閫掔粰瀵瑰簲鐨勫舰寮忓弬鏁帮紝鍑芥暟鎺ユ敹鐨勬槸鍘熷鍊肩殑涓€涓猚opy锛屾鏃跺唴瀛樹腑瀛樺湪涓や釜鐩哥瓑鐨勫熀鏈被鍨嬶紝鍗冲疄闄呭弬鏁板拰褰㈠紡鍙傛暟锛屽悗闈㈡柟娉曚腑鐨勬搷浣滈兘鏄褰㈠弬杩欎釜鍊肩殑淇敼锛屼笉褰卞搷瀹為檯鍙傛暟鐨勫€笺€?/div>
寮曠敤浼犻€掞細
涔熺О涓轰紶鍦板潃銆傛柟娉曡皟鐢ㄦ椂锛屽疄闄呭弬鏁扮殑寮曠敤(鍦板潃锛岃€屼笉鏄弬鏁扮殑鍊?琚紶閫掔粰鏂规硶涓浉瀵瑰簲鐨勫舰寮忓弬鏁帮紝鍑芥暟鎺ユ敹鐨勬槸鍘熷鍊肩殑鍐呭瓨鍦板潃锛?/div>
鍦ㄦ柟娉曟墽琛屼腑锛屽舰鍙傚拰瀹炲弬鍐呭鐩稿悓锛屾寚鍚戝悓涓€鍧楀唴瀛樺湴鍧€锛屾柟娉曟墽琛屼腑瀵瑰紩鐢ㄧ殑鎿嶄綔灏嗕細褰卞搷鍒板疄闄呭璞°€?/div>
4.缁撹
缁撳悎涓婇潰鐨勫垎鏋愶紝鍏充簬鍊间紶閫掑拰寮曠敤浼犻€掑彲浠ュ緱鍑鸿繖鏍风殑缁撹锛?/div>
锛?锛夊熀鏈暟鎹被鍨嬩紶鍊硷紝瀵瑰舰鍙傜殑淇敼涓嶄細褰卞搷瀹炲弬锛?/div>
锛?锛夊紩鐢ㄧ被鍨嬩紶寮曠敤锛屽舰鍙傚拰瀹炲弬鎸囧悜鍚屼竴涓唴瀛樺湴鍧€锛堝悓涓€涓璞★級锛屾墍浠ュ鍙傛暟鐨勪慨鏀逛細褰卞搷鍒板疄闄呯殑瀵硅薄锛?/div>
锛?锛塖tring, Integer, Double绛塱mmutable鐨勭被鍨嬬壒娈婂鐞嗭紝鍙互鐞嗚В涓轰紶鍊硷紝鏈€鍚庣殑鎿嶄綔涓嶄細淇敼瀹炲弬瀵硅薄銆?/div>
浠g爜锛?/div>
package com.quote.value;
 
public class ReferencePkValue {
 
public static void main(String[] args) {
ReferencePkValue t=new ReferencePkValue();
int a=99;
t.test1(a);
System.out.println(a);
MyObj obj=new MyObj();
t.test2(obj);
System.out.println(obj.b);
}
public void test1(int a) {
a=a++;
System.out.println("test1:"+a);
}
public void test2(MyObj obj){ 
        obj.b=100;
        System.out.println("test2:"+obj.b);
    } 
 
}
 
class MyObj{
public int b=99;
}
 
缁撴灉锛?/div>
test1:99
99
test2:100
100
 

 

------鍒嗛殧绾?---------------------------
鍏虫敞Java1234寰俊鍏紬鍙?/strong>
鎺ㄨ崘璧勬枡