{"id":40,"date":"2021-04-25T15:36:19","date_gmt":"2021-04-25T07:36:19","guid":{"rendered":"http:\/\/112.124.66.68\/?p=40"},"modified":"2021-04-25T15:36:19","modified_gmt":"2021-04-25T07:36:19","slug":"article003","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/25\/article003\/","title":{"rendered":"\u516b\u79cd\u57fa\u672c\u6570\u636e\u7c7b\u578b\u7684\u5927\u5c0f\uff0c\u4ee5\u53ca\u4ed6\u4eec\u7684\u5c01\u88c5\u7c7b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-41\" src=\"http:\/\/112.124.66.68\/wp-content\/uploads\/2021\/04\/Snipaste_2021-04-25_15-33-58-300x154.png\" alt=\"\" width=\"386\" height=\"198\" srcset=\"https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/Snipaste_2021-04-25_15-33-58-300x154.png 300w, https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/Snipaste_2021-04-25_15-33-58-768x395.png 768w, https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/Snipaste_2021-04-25_15-33-58-670x344.png 670w, https:\/\/sanlangcode.com\/wp-content\/uploads\/2021\/04\/Snipaste_2021-04-25_15-33-58.png 922w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/p>\n<p>1.int\u662f\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff0cInteger\u662fint\u7684\u5c01\u88c5\u7c7b\uff0c\u662f\u5f15\u7528\u7c7b\u578b\u3002int\u9ed8\u8ba4\u503c\u662f0\uff0c\u800cInteger\u9ed8\u8ba4\u503c\u662fnull\uff0c\u6240\u4ee5Integer\u80fd\u533a\u5206\u51fa0\u548cnull\u7684\u60c5\u51b5\u3002\u4e00\u65e6java\u770b\u5230null\uff0c\u5c31\u77e5\u9053\u8fd9\u4e2a\u5f15\u7528\u8fd8\u6ca1\u6709\u6307\u5411\u67d0\u4e2a\u5bf9\u8c61\uff0c\u518d\u4efb\u4f55\u5f15\u7528\u4f7f\u7528\u524d\uff0c\u5fc5\u987b\u4e3a\u5176\u6307\u5b9a\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5426\u5219\u4f1a\u62a5\u9519\u3002<!--more--><\/p>\n<p>2.\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5728\u58f0\u660e\u65f6\u7cfb\u7edf\u4f1a\u81ea\u52a8\u7ed9\u5b83\u5206\u914d\u7a7a\u95f4\uff0c\u800c\u5f15\u7528\u7c7b\u578b\u58f0\u660e\u65f6\u53ea\u662f\u5206\u914d\u4e86\u5f15\u7528\u7a7a\u95f4\uff0c\u5fc5\u987b\u901a\u8fc7\u5b9e\u4f8b\u5316\u5f00\u8f9f\u6570\u636e\u7a7a\u95f4\u4e4b\u540e\u624d\u53ef\u4ee5\u8d4b\u503c\u3002\u6570\u7ec4\u5bf9\u8c61\u4e5f\u662f\u4e00\u4e2a\u5f15\u7528\u5bf9\u8c61\uff0c\u5c06\u4e00\u4e2a\u6570\u7ec4\u8d4b\u503c\u7ed9\u53e6\u4e00\u4e2a\u6570\u7ec4\u65f6\u53ea\u662f\u590d\u5236\u4e86\u4e00\u4e2a\u5f15\u7528\uff0c\u6240\u4ee5\u901a\u8fc7\u67d0\u4e00\u4e2a\u6570\u7ec4\u6240\u505a\u7684\u4fee\u6539\u5728\u53e6\u4e00\u4e2a\u6570\u7ec4\u4e2d\u4e5f\u770b\u7684\u89c1\u3002<\/p>\n<p>\u867d\u7136\u5b9a\u4e49\u4e86boolean\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u4f46\u662f\u53ea\u5bf9\u5b83\u63d0\u4f9b\u4e86\u975e\u5e38\u6709\u9650\u7684\u652f\u6301\u3002\u5728Java\u865a\u62df\u673a\u4e2d\u6ca1\u6709\u4efb\u4f55\u4f9bboolean\u503c\u4e13\u7528\u7684\u5b57\u8282\u7801\u6307\u4ee4\uff0cJava\u8bed\u8a00\u8868\u8fbe\u5f0f\u6240\u64cd\u4f5c\u7684boolean\u503c\uff0c\u5728\u7f16\u8bd1\u4e4b\u540e\u90fd\u4f7f\u7528Java\u865a\u62df\u673a\u4e2d\u7684int\u6570\u636e\u7c7b\u578b\u6765\u4ee3\u66ff\uff0c\u800cboolean\u6570\u7ec4\u5c06\u4f1a\u88ab\u7f16\u7801\u6210Java\u865a\u62df\u673a\u7684byte\u6570\u7ec4\uff0c\u6bcf\u4e2a\u5143\u7d20boolean\u5143\u7d20\u53608\u4f4d\u3002\u8fd9\u6837\u6211\u4eec\u53ef\u4ee5\u5f97\u51faboolean\u7c7b\u578b\u5360\u4e86\u5355\u72ec\u4f7f\u7528\u662f4\u4e2a\u5b57\u8282\uff0c\u5728\u6570\u7ec4\u4e2d\u53c8\u662f1\u4e2a\u5b57\u8282\u3002\u4f7f\u7528int\u7684\u539f\u56e0\u662f\uff0c\u5bf9\u4e8e\u5f53\u4e0b32\u4f4d\u7684\u5904\u7406\u5668\uff08CPU\uff09\u6765\u8bf4\uff0c\u4e00\u6b21\u5904\u7406\u6570\u636e\u662f32\u4f4d\uff08\u8fd9\u91cc\u4e0d\u662f\u6307\u7684\u662f32\/64\u4f4d\u7cfb\u7edf\uff0c\u800c\u662f\u6307CPU\u786c\u4ef6\u5c42\u9762\uff09\uff0c\u5177\u6709\u9ad8\u6548\u5b58\u53d6\u7684\u7279\u70b9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.int\u662f\u57fa\u672c\u6570\u636e\u7c7b\u578b\uff0cInt&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/325"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}