{"id":98812,"date":"2020-04-05T16:11:16","date_gmt":"2020-04-05T08:11:16","guid":{"rendered":"http:\/\/4563.org\/?p=98812"},"modified":"2020-04-05T16:11:16","modified_gmt":"2020-04-05T08:11:16","slug":"%e9%9d%a2%e8%af%95%e9%81%87%e5%88%b0%e9%9d%a2%e8%af%95%e5%ae%98%e6%98%af%e9%94%99%e7%9a%84%e6%83%85%e5%86%b5%e8%af%a5%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=98812","title":{"rendered":"\u9762\u8bd5\u9047\u5230\u9762\u8bd5\u5b98\u662f\u9519\u7684\u60c5\u51b5\u8be5\u600e\u4e48\u529e"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u9762\u8bd5\u9047\u5230\u9762\u8bd5\u5b98\u662f\u9519\u7684\u60c5\u51b5\u8be5\u600e\u4e48\u529e               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chippai <\/span>  <span><i><\/i> 57<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4eca\u65e5\u5230 58 \u9762\u8bd5\uff0c1 \u9762\u5c31\u8dea\u4e86\u3002\u9762\u8bd5\u5b98\u4e5f\u89e3\u91ca\u4e86 2 \u4e2a\u539f\u56e0\uff1a\u57fa\u7840\u4e0d\u597d\uff0c\u503c\u4f20\u9012\u548c\u5f15\u7528\u4f20\u9012\u7684\u95ee\u9898\u9519\u4e86\uff1b jvm \u8c03\u4f18\u7ecf\u9a8c\u4e0d\u8db3(\u8fd9\u6211\u8ba4)\u3002\u6211\u60f3\u5410\u69fd\u7684\u662f\uff0c\u57fa\u7840\u9898\u5e76\u6ca1\u9519\uff0c2 \u4e2a\u503c\u90fd\u8f93\u51fa main \u51fd\u6570\u4e2d\u5b9a\u4e49\u7684\uff08 0,aaa \uff09\u3002\u9898\u5982\u4e0b\uff1a<\/p>\n<pre><code>public class Test05 {     private static void changeInt(int param) {         param = 1;     }     private static void changeString(String param) {         param = \"bbb\";     }     public static void main(String[] args) {         \/\/ int         int intParam = 0;         changeInt(intParam);         System.out.println(intParam);         \/\/ string         String stringParam = \"aaa\";         changeString(stringParam);         System.out.println(stringParam);     } } <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"729870\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yizhimamong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6b63\u5e38\uff0c\u4e0d\u8fc7\u7b97\u662f\u8fd0\u6c14\u4e0d\u597d\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729871\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sgissb1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5ffd\u7565\uff0c\u6ca1\u610f\u4e49\u3002\u5982\u679c\u4e0d\u662f\u9762\u8bd5\u5b98\u65e0\u610f\u8bc6\u641e\u9519\u7684\uff0c\u5c31\u662f\u8fc7\u4e8e\u81ea\u4fe1\u641e\u51fa\u6765\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u65e0\u610f\u8bc6\u641e\u9519\u7684\u9762\u8bd5\u5b98\uff0c\u63d0\u9192\u4e00\u4e0b\u5c31\u591f\u4e86\u3002\u4ed6\u4eec\u4f1a\u8ddf\u7740\u4f60\u7684\u95ee\u9898\u4e00\u8d77\u8fc7\u4e00\u4e0b\u770b\u770b\u3002\u4e0d\u8fc7\u6700\u7ec8\u8fd8\u662f\u4e0d\u503c\u5f97\u53bb\u5728\u610f\u3002<br \/>\u5982\u679c\u662f\u8fc7\u5ea6\u81ea\u4fe1\u7684\u90a3\u79cd\u9762\u8bd5\u5b98\uff0c\u90a3\u57fa\u672c\u6700\u597d\u95ed\u5634\u3002\u81ea\u4fe1\u8fd9\u73a9\u610f\u641e\u4e0d\u597d\u5c31\u662f\u81ea\u8d1f\u7684\u5f00\u59cb\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729872\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wysnylc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             java \u6ca1\u6709\u5f15\u7528\u4f20\u9012,\u53ea\u6709\u503c\u4f20\u9012-&gt;https:\/\/blog.csdn.net\/javazejian\/article\/details\/51192130                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729873\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imopf4 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u8bf4\u51fa\u6765\uff0c\u6211\u5c31\u78b0\u5230\u8fc7\u5634\u6b7b\u786c\u7684\u9886\u5bfc\uff0c\u4ece\u6765\u4e0d\u8bf4\u81ea\u5df1\u95ee\u9898\uff0c\u5c31\u662f\u9519\u8bef\u90fd\u4e5f\u8981\u5706\u56de\u6765\uff0c\u771f\u4f3a\u5019\u4e0d\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729874\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : capo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u8fdb\u53bb\u8bf4\u4e0d\u5b9a\u6bd4\u8fdb\u53bb\u4e86\u5f3a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729875\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : la2la <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             java \u6838\u5fc3\u7f16\u7a0b 4.5<br \/>&#8220;`<br \/> \u9996\u5148\u56de\u987e\u4e00\u4e0b\u5728\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u4e2d\u6709\u5173\u5c06\u53c2\u6570\u4f20\u9012\u7ed9\u65b9\u6cd5\uff08\u6216\u51fd\u6570\uff09\u7684\u4e00\u4e9b\u4e13\u4e1a\u672f\u8bed\u3002\u6309<br \/>\u503c\u8c03\u7528\uff08 call by value) \u8868\u793a\u65b9\u6cd5\u63a5\u6536\u7684\u662f\u8c03\u7528\u8005\u63d0\u4f9b\u7684\u503c\u3002\u800c\u6309\u5f15\u7528\u8c03\u7528\uff08 call by reference )<br \/>\u8868\u793a\u65b9\u6cd5\u63a5\u6536\u7684\u662f\u8c03\u7528\u8005\u63d0\u4f9b\u7684\u53d8\u91cf\u5730\u5740\u3002\u4e00\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u4fee\u6539\u4f20\u9012\u5f15\u7528\u6240\u5bf9\u5e94\u7684\u53d8\u91cf\u503c\uff0c \u800c<br \/>\u4e0d\u80fd\u4fee\u6539\u4f20\u9012\u503c\u8c03\u7528\u6240\u5bf9\u5e94\u7684\u53d8\u91cf\u503c\u3002\u201c \u6309\u2026\u2026\u8c03\u7528\u201d(call by) \u662f\u4e00\u4e2a\u6807\u51c6\u7684\u8ba1\u7b97\u673a\u79d1\u5b66\u672f\u8bed\uff0c<br \/>\u5b83\u7528\u6765\u63cf\u8ff0\u5404\u79cd\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\uff08\u4e0d\u53ea\u662f Java ) \u4e2d\u65b9\u6cd5\u53c2\u6570\u7684\u4f20\u9012\u65b9\u5f0f\uff08\u4e8b\u5b9e\u4e0a\uff0c\u4ee5\u524d\u8fd8\u6709\u6309<br \/>\u540d\u8c03\u7528\uff08 call by name), Algo \u4e28\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u662f\u6700\u53e4\u8001\u7684\u9ad8\u7ea7\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u4e4b\u4e00\uff0c \u5b83\u4f7f\u7528\u7684\u5c31<br \/>\u662f\u8fd9\u79cd\u53c2\u6570\u4f20\u9012\u65b9\u5f0f\u3002\u4e0d\u8fc7\uff0c\u5bf9\u4e8e\u4eca\u5929\uff0c \u8fd9\u79cd\u4f20\u9012\u65b9\u5f0f\u5df2\u7ecf\u6210\u4e3a\u5386\u53f2\uff09\u3002<br \/> Java \u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u603b\u662f\u91c7\u7528**\u6309\u503c\u8c03\u7528**\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c \u65b9\u6cd5\u5f97\u5230\u7684\u662f\u6240\u6709\u53c2\u6570\u503c\u7684\u4e00\u4e2a\u62f7<br \/>\u8d1d\uff0c\u7279\u522b\u662f\uff0c\u65b9\u6cd5\u4e0d\u80fd\u4fee\u6539\u4f20\u9012\u7ed9\u5b83\u7684\u4efb\u4f55\u53c2\u6570\u53d8\u91cf\u7684\u5185\u5bb9\u3002<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729876\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : meepo3927 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             58 \u540c\u57ce\u5417<\/p>\n<p>em&#8230;                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729877\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : daimubai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Java \u53ea\u6709\u503c\u4f20\u9012\uff0c\u5bf9\u4e8e\u57fa\u672c\u7c7b\u578b\u4f20\u9012\u7684\u5c31\u662f\u81ea\u8eab\u7684\u503c\uff0c\u5c06\u503c\u8d4b\u7ed9\u4e86 param\uff0c\u6240\u4ee5\u4e0d\u4f1a\u4ed6\u7684\u6539\u53d8\u4e0e intParam \u65e0\u5173<br \/>\u5bf9\u4e8e\u5f15\u7528\u7c7b\u578b\u4f20\u9012\u7684\u662f\u5bf9\u8c61\u7684\u5f15\u7528\u800c\u4e0d\u662f\u5bf9\u8c61\uff0c\u6240\u4ee5\u5f62\u53c2\u548c\u5b9e\u53c2\u6307\u5411\u7684\u5f15\u7528\u662f\u540c\u4e00\u4efd\uff0c\u4f46\u662f\u7531\u4e8e String \u7684\u7279\u6b8a\u6027\uff0c\u5f53\u91cd\u65b0\u8d4b\u503c\u540e\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bf9\u8c61                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729878\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chippai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @daimubai <br \/>@la2la \u662f\u554a\uff0c\u90fd\u662f\u57fa\u7840\uff0c\u5f53\u65f6\u8fd8\u60f3\u548b\u4f1a\u9519\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"729879\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chippai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @meepo3927 \u62c9\u9ed1 58 \u5427\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u9762\u8bd5\u9047\u5230\u9762\u8bd5\u5b98\u662f\u9519\u7684\u60c5\u51b5\u8be5\u600e\u4e48\u529e &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/98812"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98812"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/98812\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98812"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}