{"id":79955,"date":"2026-03-03T20:25:07","date_gmt":"2026-03-03T12:25:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79955.html"},"modified":"2026-03-03T20:25:07","modified_gmt":"2026-03-03T12:25:07","slug":"java%e5%88%9d%e5%a7%8b%ef%bc%881%ef%bc%89%e3%80%90%e8%a1%a5%e5%85%85%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79955.html","title":{"rendered":"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011"},"content":{"rendered":"<h3 style=\"background-color:transparent;text-align:justify\">3.\u7c7b\u578b\u8f6c\u6362<\/h3>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">3.1 \u81ea\u52a8\u7c7b\u578b\u8f6c\u6362<\/h4>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u53bb\u8bc6\u522b\u6570\u636e\u7c7b\u578b\u5e76\u5b8c\u6210\u8f6c\u6362&#xff0c;\u4e0d\u662f\u6240\u6709\u7684\u6570\u636e\u90fd\u80fd\u81ea\u52a8\u8f6c\u6362&#xff0c;\u53ea\u80fd\u4ece\u4f4e\u5b57\u8282\u5411\u9ad8\u5b57\u8282\u8f6c\u6362&#xff0c;\u53cd\u4e4b\u5219\u4e0d\u884c\u3002<\/p>\n<p>&#xff08;1&#xff09;\u53ef\u4ee5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u5982\u4e0b\u4f8b\u6240\u793a&#xff1a;<\/p>\n<p>public class Test {<br \/>\n   public static void main(String[] args){<br \/>\n       int num &#061; 10;<br \/>\n       double num2 &#061; num;<br \/>\n       System.out.println(num2);<br \/>\n   }<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>10.0 <\/p>\n<p>&#xff08;2&#xff09;\u4e0d\u53ef\u4ee5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u5982\u4e0b\u4f8b\u6240\u793a&#xff0c;\u4ee3\u7801\u4f1a\u62a5\u9519<\/p>\n<p>public class Test {<br \/>\n   public static void main(String[] args){<br \/>\n       long i &#061; 1;<br \/>\n       int ii &#061; i;<br \/>\n   }<br \/>\n} <\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">3.2 \u5f3a\u5236\u7c7b\u578b\u8f6c\u6362<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0 \u00a0 \u00a0\u5982\u679c\u7a0b\u5e8f\u65e0\u6cd5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362&#xff0c;\u5219\u9700\u8981\u8fdb\u884c\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u4e0d\u63a8\u8350\u4f7f\u7528&#xff0c;\u6709\u53ef\u80fd\u9020\u6210\u6570\u636e\u7cbe\u5ea6\u635f\u5931\u3002\u3010\u6ce8\u610f&#xff1a;\u53ea\u80fd\u662f\u76f8\u540c\u7c7b\u578b\u7684\u624d\u80fd\u8fdb\u884c\u5f3a\u5236\u8f6c\u6362&#xff08;\u4f8b\u5982\u6570\u5b57\u8f6c\u6570\u5b57&#xff0c;\u4e0d\u80fd\u51fa\u73b0\u6570\u5b57\u8f6c\u5b57\u7b26&#xff09;\u3011<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5f3a\u5236\u8f6c\u6362\u9020\u6210\u7cbe\u5ea6\u635f\u5931\u5982\u4e0b\u4f8b\u6240\u793a&#xff1a;<\/p>\n<p>public class Test {<br \/>\n   public static void main(String[] args){<br \/>\n       double num1 &#061; 10.6;<br \/>\n       int num2 &#061; (int)num1;<br \/>\n       System.out.println(num2);<br \/>\n   }<br \/>\n}<\/p>\n<p>\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<\/p>\n<p>10 <\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">3.3 \u5f15\u7528\u7c7b\u578b<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0 \u00a0 \u00a0\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u89c4\u5219\u662f\u5b50\u7c7b\u5bf9\u8c61\u53ef\u4ee5\u8f6c\u6362\u4e3a\u7236\u7c7b\u5bf9\u8c61&#xff0c;\u4f46\u662f\u7236\u7c7b\u5bf9\u8c61\u4e0d\u80fd\u8f6c\u6362\u4e3a\u5b50\u7c7b\u5bf9\u8c61\u3002\u3010\u7236\u7c7b\u5bf9\u8c61\u8f6c\u5b50\u7c7b\u5fc5\u987b\u4f7f\u7528\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u5982\u679c\u4e24\u4e2a\u7c7b\u4e4b\u95f4\u6ca1\u6709\u7236\u5b50\u7c7b\u7ee7\u627f\u5173\u7cfb&#xff0c;\u5219\u65e0\u6cd5\u8fdb\u884c\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3011<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u5b50\u7c7b\u5bf9\u8c61\u8f6c\u6362\u4e3a\u7236\u7c7b\u5bf9\u8c61\u9700\u8981\u5f3a\u5236\u8f6c\u6362&#xff1a;<\/p>\n<p>public class Test {<br \/>\n       public static void main(String[] args){<br \/>\n           People people &#061; new People();<br \/>\n           Student student &#061; (Student) people;<br \/>\n       }<br \/>\n    } <\/p>\n<p>&#xff08;2&#xff09;\u7236\u7c7b\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b50\u7c7b\u5bf9\u8c61\u5219\u4f1a\u81ea\u52a8\u8f6c\u6362&#xff1a;<\/p>\n<p> public class Test {<br \/>\n       public static void main(String[] args){<br \/>\n           Student student &#061; new Student();<br \/>\n           People people &#061; student;<br \/>\n       }<br \/>\n    } <\/p>\n<p>\u5f53\u53d6\u6d88\u4e24\u8005\u7684\u7ee7\u627f\u5173\u7cfb\u65f6&#xff0c;\u65e0\u8bba\u662f\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u8fd8\u662f\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u90fd\u4f1a\u5931\u6548&#xff0c;\u4e0a\u8ff0\u4ee3\u7801\u7686\u4f1a\u62a5\u9519\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">3.4\u62c6\u7bb1\u548c\u88c5\u7bb1<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0 \u00a0 \u5b83\u4e5f\u5c5e\u4e8e\u7c7b\u578b\u8f6c\u6362&#xff0c;\u662f\u5f15\u7528\u7c7b\u578b\u548c\u57fa\u672c\u6570\u636e\u7c7b\u578b\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/p>\n<h3 style=\"text-align:justify\">4.\u8fd0\u7b97\u7b26<\/h3>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.1 \u903b\u8f91\u8fd0\u7b97\u7b26<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0 \u00a0 \u00a0\u53ea\u80fd\u7528\u4e8eboolean\u7c7b\u578b\u7684\u6570\u636e&#xff0c;\u5224\u65adboolean\u6570\u636e\u4e4b\u95f4\u7684\u903b\u8f91\u5173\u7cfb&#xff0c;\u5305\u62ec\u4e0e\u3001\u6216\u3001\u975e3\u79cd\u903b\u8f91\u5173\u7cfb\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4e0e&#xff1a;&amp;&#xff1b;&#xff08;2&#xff09;\u77ed\u8def\u4e0e&#xff1a;&amp;&amp;&#xff1b;&#xff08;3&#xff09;\u6216&#xff1a;|&#xff1b;&#xff08;4&#xff09;\u77ed\u8def\u6216&#xff1a;||&#xff1b;&#xff08;5&#xff09;\u975e&#xff1a;!\u3002<\/p>\n<h5 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.1.1 \u8fd0\u7b97\u7ed3\u679c<\/h5>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;1&#xff09;A &amp; B&#xff0c;\u53ea\u6709\u5f53 A \u548c B \u90fd\u4e3a true \u7684\u65f6\u5019\u7ed3\u679c\u4e3a true&#xff0c;\u5426\u5219\u4e3a false<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;2&#xff09;A | B&#xff0c;\u53ea\u8981 A \u6216 B \u6709\u4e00\u4e2a\u4e3a true&#xff0c;\u5219\u7ed3\u679c\u4e3a true&#xff0c;\u5426\u5219\u4e3a false<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;3&#xff09;A &amp;&amp; B&#xff0c;\u53ea\u6709\u5f53 A \u548c B \u90fd\u4e3a true \u7684\u65f6\u5019\u7ed3\u679c\u4e3a true&#xff0c;\u5426\u5219\u4e3a false<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;4&#xff09;A || B&#xff0c;\u53ea\u8981 A \u6216 B \u6709\u4e00\u4e2a\u4e3a true&#xff0c;\u5219\u7ed3\u679c\u4e3a true&#xff0c;\u5426\u5219\u4e3a false<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;5&#xff09;! A&#xff0c;\u53d6\u53cd<\/p>\n<h5 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.1.2\u00a0&amp;&amp;\u6bd4&amp;\u7684\u6548\u7387\u66f4\u9ad8<\/h5>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0 \u00a0 \u00a0&amp;\u8fd0\u7b97\u7b26\u65e0\u8bba\u5982\u4f55\u90fd\u8981\u8fd0\u7b97\u4e24\u6b21\u5f97\u51fa\u7ed3\u679c\u3010\u5373\u5148\u6c42\u51faA&#xff0c;\u518d\u6c42\u51faB&#xff0c;\u6700\u540e\u5f97\u51fa\u6700\u7ec8\u7ed3\u679c\u3011&#xff1b;&amp;&amp;\u8fd0\u7b97\u7b26\u4f1a\u51fa\u73b0\u53ea\u8fd0\u7b97\u4e00\u6b21\u5c31\u80fd\u5f97\u51fa\u7ed3\u679c\u7684\u60c5\u51b5\u3010\u5373\u82e5\u6c42\u51faA\u7684\u7ed3\u679c\u82e5\u662ffalse&#xff0c;\u5219\u4e0d\u4f1a\u8ba1\u7b97B\u7684\u7ed3\u679c&#xff0c;\u5426\u5219\u4f1a\u518d\u8ba1\u7b97A\u7684\u7ed3\u679c&#xff0c;\u5f97\u51fa\u6700\u7ec8\u7ed3\u8bba\u3011\u3002| \u4e0e || \u7684\u539f\u7406\u662f\u4e00\u6837\u7684\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6ce8&#xff1a;&amp;\u4e0e&amp;&amp;\u3001&#043;&#043;\u5728\u524d\u4e0e&#043;&#043;\u5728\u540e\u7684\u533a\u522b&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;1&#xff09;&amp;\u4e0e&amp;&amp;\u7684\u533a\u522b&#xff1a;<\/p>\n<p>  public class Test {<br \/>\n       public static void main(String[] args){<br \/>\n           int num1 &#061; 10;<br \/>\n           int num2 &#061; 11;<br \/>\n           System.out.println((num1&#043;&#043;&#061;&#061;num2)&amp;(&#043;&#043;num1&#061;&#061;num2));<br \/>\n           System.out.println(num1);<br \/>\n       }<br \/>\n    } <\/p>\n<p>\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>false<br \/>\n12<br \/>\n    public class Test {<br \/>\n       public static void main(String[] args){<br \/>\n           int num1 &#061; 10;<br \/>\n           int num2 &#061; 11;<br \/>\n           System.out.println((num1&#043;&#043;&#061;&#061;num2)&amp;&amp;(&#043;&#043;num1&#061;&#061;num2));<br \/>\n           System.out.println(num1);<br \/>\n       }<br \/>\n    } <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>false<br \/>\n11<\/p>\n<p>&amp;&amp;\u8fd0\u7b97\u7b26\u6bd4&amp;\u8fd0\u7b97\u7b26\u5c11\u4e00\u6b21\u8fd0\u7b97&#xff0c;\u6700\u7ec8num1\u7684\u7ed3\u679c\u4f1a\u51fa\u73b0\u53d8\u5316\u3002<\/p>\n<p>&#xff08;2&#xff09;&#043;&#043;\u5728\u524d\u4e0e&#043;&#043;\u5728\u540e\u7684\u533a\u522b&#xff1a;<\/p>\n<p>&#043;&#043;\u5728\u524d\u65f6&#xff0c;\u662f\u5148\u8ba1\u7b97num1&#061;num1&#043;1&#xff0c;\u8ba1\u7b97\u5b8c\u4e4b\u540e\u518d\u8ba1\u7b97num1&#061;&#061;num2\u7684\u7ed3\u679c&#xff1b;&#043;&#043;\u5728\u540e\u65f6&#xff0c;\u662f\u5148\u8ba1\u7b97num1&#061;&#061;num2\u7684\u7ed3\u679c&#xff0c;\u8ba1\u7b97\u5b8c\u4e4b\u540e&#xff0c;\u518d\u8ba1\u7b97num1&#061;num1&#043;1\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.2\u4f4d\u8fd0\u7b97\u7b26<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">4.2.1 \u5341\u8fdb\u5236\u548c\u4e8c\u8fdb\u5236\u7684\u8f6c\u6362&#xff1a;\u76ee\u6807\u6570\u9664\u4ee52&#xff0c;\u82e5\u80fd\u9664\u5c3d&#xff0c;\u5219\u6539\u4e3a\u8bb0\u4f5c0&#xff0c;\u5982\u679c\u9664\u4e0d\u5c3d\u8be5\u4f4d\u8bb0\u4f5c1&#xff0c;\u518d\u5bf9\u5546\u7ee7\u7eed\u9664\u4ee52&#xff0c;\u4ee5\u6b64\u7c7b\u63a8&#xff0c;\u76f4\u5230\u5546\u4e3a0&#xff0c;\u7136\u540e\u628a\u6bcf\u4e00\u4f4d\u7684\u7ed3\u679c\u53cd\u5e8f\u7ec4\u5408\u5c31\u662f\u5bf9\u5e94\u7684\u4e8c\u8fdb\u5236\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">4.2.2 \u4e8c\u8fdb\u5236\u8f6c\u5341\u8fdb\u5236&#xff1a;\u4ece\u76ee\u6807\u6570\u6700\u53f3\u4fa7\u7b97\u8d77&#xff0c;\u672c\u4f4d\u7684\u6570\u503c\u4e58\u4ee5\u672c\u4f4d\u7684\u6743\u91cd&#xff08;2\u7684\u7b2c\u51e0\u4f4d\u7684\u4f4d\u6570\u51cf\u4e00\u6b21\u65b9&#xff09;\u5f97\u5230\u4e00\u4e2a\u4e58\u79ef&#xff0c;\u5c06\u6bcf\u4e00\u4f4d\u7684\u4e58\u79ef\u76f8\u52a0\u5c31\u662f\u5bf9\u5e94\u7684\u5341\u8fdb\u5236\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.3 \u8fd0\u7b97\u7b26<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0 \u00a0&#xff08;1&#xff09;&amp;&#xff08;\u6309\u4f4d\u4e0e&#xff09;&#xff1b;&#xff08;2&#xff09;|&#xff08;\u6309\u4f4d\u6216&#xff09;&#xff1b;&#xff08;3&#xff09;^&#xff08;\u6309\u4f4d\u5f02\u6216&#xff09;<\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4.4 \u8fd0\u7b97\u65b9\u5f0f<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;1&#xff09;A &amp; B&#xff1a;\u6bcf\u4e00\u4f4d\u7684\u6570\u5b57\u4e00\u4e00\u5bf9\u5e94&#xff0c;\u5982\u679c\u90fd\u4e3a1&#xff0c;\u5219\u8be5\u4f4d\u8bb0\u4f5c1&#xff0c;\u5426\u5219\u4e3a0<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;2&#xff09;A | B&#xff1a;\u6bcf\u4e00\u4f4d\u7684\u6570\u5b57\u4e00\u4e00\u5bf9\u5e94&#xff0c;\u53ea\u8981\u6709\u4e00\u4e2a\u4e3a1&#xff0c;\u5219\u8be5\u4f4d\u8bb0\u4f5c1&#xff0c;\u5426\u5219\u4e3a0<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;3&#xff09;A ^ B&#xff1a;\u6bcf\u4e00\u4f4d\u7684\u6570\u5b57\u4e00\u4e00\u5bf9\u5e94&#xff0c;\u76f8\u540c\u8bb0\u4f5c0&#xff0c;\u4e0d\u540c\u8bb0\u4f5c1\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n","protected":false},"excerpt":{"rendered":"<p>3.\u7c7b\u578b\u8f6c\u6362<br \/>\n3.1 \u81ea\u52a8\u7c7b\u578b\u8f6c\u6362<br \/>\n\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u53bb\u8bc6\u522b\u6570\u636e\u7c7b\u578b\u5e76\u5b8c\u6210\u8f6c\u6362&#xff0c;\u4e0d\u662f\u6240\u6709\u7684\u6570\u636e\u90fd\u80fd\u81ea\u52a8\u8f6c\u6362&#xff0c;\u53ea\u80fd\u4ece\u4f4e\u5b57\u8282\u5411\u9ad8\u5b57\u8282\u8f6c\u6362&#xff0c;\u53cd\u4e4b\u5219\u4e0d\u884c\u3002<br \/>\n&#xff08;1&#xff09;\u53ef\u4ee5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u5982\u4e0b\u4f8b\u6240\u793a&#xff1a;<br \/>\npublic class Test {public static void main(String[] args){int num  10;double num2  num;System.out.printl<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,190],"topic":[],"class_list":["post-79955","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/79955.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"3.\u7c7b\u578b\u8f6c\u6362 3.1 \u81ea\u52a8\u7c7b\u578b\u8f6c\u6362 \u7a0b\u5e8f\u4f1a\u81ea\u52a8\u53bb\u8bc6\u522b\u6570\u636e\u7c7b\u578b\u5e76\u5b8c\u6210\u8f6c\u6362&#xff0c;\u4e0d\u662f\u6240\u6709\u7684\u6570\u636e\u90fd\u80fd\u81ea\u52a8\u8f6c\u6362&#xff0c;\u53ea\u80fd\u4ece\u4f4e\u5b57\u8282\u5411\u9ad8\u5b57\u8282\u8f6c\u6362&#xff0c;\u53cd\u4e4b\u5219\u4e0d\u884c\u3002 &#xff08;1&#xff09;\u53ef\u4ee5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u5982\u4e0b\u4f8b\u6240\u793a&#xff1a; public class Test {public static void main(String[] args){int num 10;double num2 num;System.out.printl\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79955.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-03T12:25:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79955.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79955.html\",\"name\":\"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-03T12:25:07+00:00\",\"dateModified\":\"2026-03-03T12:25:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79955.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79955.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79955.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/79955.html","og_locale":"zh_CN","og_type":"article","og_title":"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"3.\u7c7b\u578b\u8f6c\u6362 3.1 \u81ea\u52a8\u7c7b\u578b\u8f6c\u6362 \u7a0b\u5e8f\u4f1a\u81ea\u52a8\u53bb\u8bc6\u522b\u6570\u636e\u7c7b\u578b\u5e76\u5b8c\u6210\u8f6c\u6362&#xff0c;\u4e0d\u662f\u6240\u6709\u7684\u6570\u636e\u90fd\u80fd\u81ea\u52a8\u8f6c\u6362&#xff0c;\u53ea\u80fd\u4ece\u4f4e\u5b57\u8282\u5411\u9ad8\u5b57\u8282\u8f6c\u6362&#xff0c;\u53cd\u4e4b\u5219\u4e0d\u884c\u3002 &#xff08;1&#xff09;\u53ef\u4ee5\u5b8c\u6210\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\u5982\u4e0b\u4f8b\u6240\u793a&#xff1a; public class Test {public static void main(String[] args){int num 10;double num2 num;System.out.printl","og_url":"https:\/\/www.wsisp.com\/helps\/79955.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-03T12:25:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79955.html","url":"https:\/\/www.wsisp.com\/helps\/79955.html","name":"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-03T12:25:07+00:00","dateModified":"2026-03-03T12:25:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79955.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79955.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79955.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"java\u521d\u59cb\uff081\uff09\u3010\u8865\u5145\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=79955"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79955\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79955"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}