{"id":34,"date":"2017-04-19T17:36:58","date_gmt":"2017-04-19T09:36:58","guid":{"rendered":"http:\/\/www.myway5.com\/?p=34"},"modified":"2017-04-19T18:14:18","modified_gmt":"2017-04-19T10:14:18","slug":"java-study-lesson-9","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/","title":{"rendered":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)"},"content":{"rendered":"<p>##\u4e00\u3001\u524d\u8a00<br \/>\n\u5728Java\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7javac\u5c06.java\u7684\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e3a.class\u7684\u7c7b\u6587\u4ef6\u3002\u4e4b\u524d\u4e00\u76f4\u4ee5\u4e3a\uff0c\u53ea\u6709java\u8bed\u8a00\u53ef\u4ee5\u7f16\u8bd1\u4e3a.class\u3002\u4f46\u662f\u5728\u524d\u4e9b\u5929\u7684\u5b66\u4e60\u4e2d\uff0c\u4e86\u89e3\u5230\u4e0d\u4ec5\u4ec5\u662fJava\u8bed\u8a00\u53ef\u4ee5\u7f16\u8bd1\u6210.class\u6587\u4ef6\u7136\u540e\u8fd0\u884c\u5728Java\u865a\u62df\u673a\u4e0a\uff0cClojure\u3001Groovy\u3001JRuby\u3001Jython\u3001Scala\u7b49\u8bed\u8a00\u90fd\u53ef\u4ee5\u8fd0\u884c\u5728Java\u865a\u62df\u673a\u4e0a\u3002\u89c9\u5f97\u8fd9\u771f\u662f\u592a\u795e\u5947\u4e86\u3002\u4eca\u5929\u8fd9\u4e00\u7ae0\u7684\u5185\u5bb9\u521a\u597d\u53ef\u4ee5\u89e3\u91ca\u8fd9\u4e9b\u3002<\/p>\n<p>##\u4e8c\u3001Java\u865a\u62df\u673a\u7684\u65e0\u5173\u7cfb\u7279\u70b9<br \/>\n\u4e00\u822c\u90fd\u8bf4Java\u662f\u5e73\u53f0\u65e0\u5173\u7684\uff0c\u56e0\u4e3aJava\u662f\u8fd0\u884c\u5728Java\u865a\u62df\u673a\u4e0a\u7684\uff0c\u800cJava\u865a\u62df\u673a\u662f\u5f00\u53d1\u6210\u5404\u4e2a\u5e73\u53f0\u901a\u7528\u7684\u3002\u90a3\u4e48\u540c\u65f6\uff0cJava\u865a\u62df\u673a\u5176\u5b9e\u4e5f\u662f\u8bed\u8a00\u65e0\u5173\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0cJava\u865a\u62df\u673a\u5e76\u4e0d\u8981\u6c42\u7279\u5b9a\u7684\u8bed\u8a00\u3002\u53ea\u8981\u8be5\u8bed\u8a00\u53ef\u4ee5\u88ab\u7f16\u8bd1\u751f\u6210\u7b26\u5408\u6807\u51c6\u7684class(\u7c7b)\u6587\u4ef6\uff0c\u90a3\u4e48\u5c31\u662f\u53ef\u4ee5\u8fd0\u884c\u5728Java\u865a\u62df\u673a\u4e0a\u4e86\u3002\u90a3\u4e48\uff0c\u7c7b\u6587\u4ef6\u7684\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u5462\uff1f<\/p>\n<p>##\u4e09\u3001\u7c7b\u6587\u4ef6\u7684\u57fa\u672c\u77e5\u8bc6<br \/>\n##1.\u57fa\u672c\u5355\u4f4d<br \/>\n\u7c7b\u6587\u4ef6\u662f\u4ee58\u4f4d\u5b57\u8282\u4e3a\u57fa\u7840\u5355\u4f4d\u7684\u4e8c\u8fdb\u5236\u6d41\uff0c\u6ca1\u6709\u4efb\u4f55\u5206\u5272\u7b26\u3002\u5f53\u9047\u5230\u9700\u8981\u5360\u75288\u4f4d\u4ee5\u4e0a\u7684\u6570\u636e\u65f6\uff0c\u5219\u4f1a\u6309\u9ad8\u4f4d\u5728\u524d\u7684\u65b9\u5f0f\u5206\u5272\u6210\u82e5\u5e72\u4e2a8\u4f4d\u5b57\u8282\u8fdb\u884c\u5b58\u50a8\u3002<br \/>\n###2.\u5b58\u50a8\u6570\u636e\u7684\u6570\u636e\u683c\u5f0f:\u65e0\u7b26\u53f7\u6570\u548c\u8868\u3002<br \/>\n\u65e0\u7b26\u53f7\u6570\u5c5e\u4e8e\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3002\u4ee5u1,u2,u4,u8\u6765\u5206\u522b\u4ee3\u88681\u4e2a\u5b57\u8282\uff0c2\u4e2a\u5b57\u8282\uff0c4\u4e2a\u5b57\u8282\uff0c8\u4e2a\u5b57\u8282\u7684\u65e0\u7b26\u53f7\u6570\uff0c\u65e0\u7b26\u53f7\u6570\u53ef\u4ee5\u7528\u6765\u63cf\u8ff0\u6570\u5b57\u3001\u7d22\u5f15\u5f15\u7528\u3001\u6570\u91cf\u503c\u6216\u8005\u5b89\u88c5UTF-8\u7f16\u7801\u6784\u6210\u7684\u5b57\u7b26\u4e32\u503c\u3002<br \/>\n\u8868\u662f\u7531\u591a\u4e2a\u65e0\u7b26\u53f7\u6570\u6216\u8005\u5176\u4ed6\u8868\u4f5c\u4e3a\u6570\u636e\u9879\u6784\u6210\u7684\u590d\u5408\u6570\u636e\u7c7b\u578b\uff0c\u6240\u6709\u8868\u90fd\u4e60\u60ef\u6027\u4ee5_info\u7ed3\u5c3e\u3002<\/p>\n<p>##\u4e09\u3001\u7c7b\u6587\u4ef6\u7684\u7ed3\u6784<br \/>\n###1.\u9b54\u6570\u548c\u7248\u672c\u53f7<br \/>\nclass\u6587\u4ef6\u7684\u524d\u56db\u4e2a\u5b57\u8282\u79f0\u4e3a\u9b54\u6570(Magic Number)\uff0c\u7528\u6765\u63cf\u8ff0\u6587\u4ef6\u7684\u683c\u5f0f\uff0cclass\u6587\u4ef6\u7684\u9b54\u6570\u662f0xCAFEBABE\u3002\u7b2c\u4e94\u516d\u4e2a\u5b57\u8282\u63cf\u8ff0\u6b21\u7248\u672c\u53f7(Minor Version),\u7b2c\u4e03\u516b\u4e2a\u5b57\u8282\u63cf\u8ff0\u4e3b\u7248\u672c\u53f7\u3002<br \/>\n###2.\u5e38\u91cf\u6c60<br \/>\n\u7d27\u63a5\u7740\u4e3b\u7248\u672c\u53f7\u4e4b\u540e\u662f\u5e38\u91cf\u6c60\u7684\u5165\u53e3\u3002\u7531\u4e8e\u5e38\u91cf\u6c60\u7684\u5e38\u91cf\u6570\u91cf\u662f\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u5728\u5e38\u91cf\u6c60\u7684\u5165\u53e3\u6709\u4e00\u4e2au2\u7c7b\u578b\uff08\u7b2c9,10\u4f4d)\u7684\u6570\u636e\uff0c\u4ee3\u8868\u5e38\u91cf\u6c60\u5bb9\u91cf\u8ba1\u6570\u503c\u3002\u4e0d\u8fc7\u8fd9\u4e2a\u8ba1\u6570\u662f\u4ece1\u5f00\u59cb\u7684\uff0c\u6240\u4ee5\u5982\u679c\u8fd9\u4e2a\u503c\u662f22\uff0c\u5219\u4ee3\u8868\u670921\u4e2a\u5e38\u91cf\u3002<br \/>\n\u5e38\u91cf\u6c60\u4e2d\u4e3b\u8981\u6709\u4e24\u79cd\u7c7b\u578b:\u5b57\u9762\u91cf(Literal)\u548c\u7b26\u53f7\u5f15\u7528(Symbolic References)\u3002<\/p>\n<blockquote><p>\n  a.\u5b57\u9762\u91cf: \u63a5\u8fd1java\u8bed\u8a00\u7684\u5e38\u91cf\u7684\u6982\u5ff5\uff0c\u5982\u6587\u672c\u5b57\u7b26\u4e32\uff0c\u58f0\u660e\u4e3afinal\u7684\u5e38\u91cf\u503c\u7b49<br \/>\n  b.\u7b26\u53f7\u5f15\u7528:1.\u7c7b\u548c\u63a5\u53e3\u7684\u5168\u9650\u5b9a\u540d(Fully Qualified Name) 2.\u5b57\u6bb5\u7684\u540d\u79f0\u548c\u63cf\u8ff0\u7b26(Descriptor) 3.\u65b9\u6cd5\u7684\u540d\u79f0\u548c\u63cf\u8ff0\u7b26\n<\/p><\/blockquote>\n<p>java\u4ee3\u7801\u5728\u7f16\u8bd1\u65f6\u4e0d\u4f1a\u50cfc\/c++\u4e00\u6837\u8fdb\u884c&#8221;\u8fde\u63a5&#8221;\uff0c\u8fd9\u6837\u5728\u7f16\u8bd1\u751f\u6210\u7684class\u6587\u4ef6\u4e2d\u4e0d\u4f1a\u4fdd\u5b58\u5404\u4e2a\u65b9\u6cd5\u3001\u5b57\u6bb5\u7684\u6700\u7ec8\u5185\u5b58\u5e03\u5c40\u4fe1\u606f\uff0c\u800c\u662f\u5728\u8fd0\u884c\u7684\u65f6\u5019\u8fdb\u884c\u52a8\u6001\u8fde\u63a5\u3002\u4e5f\u5c31\u662f\u4ece\u5e38\u91cf\u6c60\u4e2d\u83b7\u5f97\u65b9\u6cd5\u3001\u5b57\u6bb5\u5bf9\u5e94\u7684\u7b26\u53f7\u5f15\u7528\uff0c\u518d\u5728\u7c7b\u521b\u5efa\u6216\u8fd0\u884c\u65f6\u89e3\u6790\u7ffb\u8bd1\u5230\u5177\u4f53\u7684\u5185\u5b58\u5730\u5740\u4e4b\u4e2d\u3002<\/p>\n<p>\u5e38\u91cf\u6c60\u4e2d\u6bcf\u4e00\u4e2a\u5e38\u91cf\u90fd\u662f\u4e00\u4e2a\u8868\uff0c\u5728JDK1.7\u524d\u5171\u670911\u4e2d\u5e38\u91cf\uff0c\u5728JDK1.7\u4e2d\u4e3a\u4e86\u66f4\u597d\u7684\u652f\u6301\u52a8\u6001\u8bed\u8a00\u8c03\u7528\uff0c\u53c8\u989d\u5916\u589e\u52a0\u4e863\u79cd(CONSTANT_MethodHandle_info\u3001CONSTANT_MethodType_info\u548cCONSTANT_InvokeDynamic_info)\u3002<\/p>\n<p>\u8fd914\u4e2a\u8868\u7684\u5171\u540c\u4e4b\u5904\u5728\u4e8e\uff0c\u8868\u5f00\u59cb\u7684\u7b2c\u4e00\u9879\u662f\u4e00\u4e2au1\u7c7b\u578b\u7684\u6807\u5fd7\u4f4d(tag),\u4ee3\u8868\u5f53\u524d\u8fd9\u4e2a\u5e38\u91cf\u5c5e\u4e8e\u54ea\u79cd\u5e38\u91cf\u7c7b\u578b\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u6807\u5fd7<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>CONSTANT_Utf8_info<\/td>\n<td>1<\/td>\n<td>UTF-8\u7f16\u7801\u7684\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Integer_info<\/td>\n<td>3<\/td>\n<td>\u6574\u578b\u5b57\u9762\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Float_info<\/td>\n<td>4<\/td>\n<td>\u6d6e\u70b9\u578b\u5b57\u9762\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Long_info<\/td>\n<td>5<\/td>\n<td>\u957f\u6574\u578b\u5b57\u9762\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Double_info<\/td>\n<td>6<\/td>\n<td>\u53cc\u7cbe\u5ea6\u6d6e\u70b9\u578b\u5b57\u9762\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Class_info<\/td>\n<td>7<\/td>\n<td>\u7c7b\u6216\u63a5\u53e3\u7684\u7b26\u53f7\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_String_info<\/td>\n<td>8<\/td>\n<td>\u5b57\u7b26\u4e32\u7c7b\u578b\u5b57\u9762\u91cf<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Fieldref_info<\/td>\n<td>9<\/td>\n<td>\u5b57\u6bb5\u7684\u7b26\u53f7\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_Methodref_info<\/td>\n<td>10<\/td>\n<td>\u7c7b\u4e2d\u65b9\u6cd5\u7684\u7b26\u53f7\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_InterfaceMathodref_info<\/td>\n<td>11<\/td>\n<td>\u63a5\u53e3\u4e2d\u65b9\u6cd5\u7684\u7b26\u53f7\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_NameAndType_info<\/td>\n<td>12<\/td>\n<td>\u5b57\u6bb5\u6216\u65b9\u6cd5\u7684\u90e8\u5206\u7b26\u53f7\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_MethodHandle_info<\/td>\n<td>15<\/td>\n<td>\u8868\u793a\u65b9\u6cd5\u53e5\u67c4<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_MethodType_info<\/td>\n<td>16<\/td>\n<td>\u8868\u793a\u65b9\u6cd5\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td>CONSTANT_InvokeDynamic_info<\/td>\n<td>18<\/td>\n<td>\u8868\u793a\u4e00\u4e2a\u52a8\u6001\u65b9\u6cd5\u8c03\u7528\u70b9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>###3.\u8bbf\u95ee\u6807\u5fd7<br \/>\n\u5728\u5e38\u91cf\u6c60\u7ed3\u675f\u4e4b\u540e\uff0c\u7d27\u63a5\u7740\u7684\u662f\u8bbf\u95ee\u6807\u5fd7\uff0c\u7528\u6765\u63cf\u8ff0\u4e00\u4e9b\u7c7b\u548c\u63a5\u53e3\u7684\u8bbf\u95ee\u4fe1\u606f\uff0c\u5305\u62ec\u8fd9\u4e2aClass\u662f\u7c7b\u8fd8\u662f\u63a5\u53e3\uff0c\u662f\u5426\u5b9a\u4e49\u4e3apublic,\u662f\u5426\u662fabstract\u5982\u679c\u662f\u7c7b\u7684\u8bdd\uff0c\u662f\u5426\u662ffinal\u3002<\/p>\n<p>###4.\u7c7b\u7d22\u5f15\uff0c\u7236\u7c7b\u7d22\u5f15\u4e0e\u63a5\u53e3\u7d22\u5f15\u96c6\u5408<br \/>\n\u8bbf\u95ee\u6807\u5fd7\u4e4b\u540e\u662f\u7c7b\u7d22\u5f15\uff0c\u7236\u7c7b\u7d22\u5f15\u4e0e\u63a5\u53e3\u7d22\u5f15\u96c6\u5408\u3002\u7c7b\u7d22\u5f15(this_class)\u548c\u7236\u7c7b\u7d22\u5f15(super_class)\u90fd\u662f\u4e00\u4e2au2\u7c7b\u578b\u7684\u6570\u636e\uff0c\u800c\u63a5\u53e3\u7d22\u5f15\u96c6\u5408(interfaces)\u662f\u4e00\u7ec4u2\u7c7b\u578b\u7684\u6570\u636e\u96c6\u5408(\u5bf9\u5e94java\u8bed\u8a00\u4e2d\u7684\u5355\u7ee7\u627f\u548c\u591a\u63a5\u53e3\u5b9e\u73b0),<\/p>\n<p>###5.\u5b57\u6bb5\u8868\u96c6\u5408<br \/>\n\u518d\u4e4b\u540e\u662f\u5b57\u6bb5\u8868\u96c6\u5408\u3002\u5b57\u6bb5\u8868(Field_info)\u7528\u4e8e\u63cf\u8ff0\u63a5\u53e3\u6216\u8005\u7c7b\u4e2d\u58f0\u660e\u7684\u53d8\u91cf\u3002\u5b57\u6bb5(field)\u5305\u62ec\u7c7b\u7ea7\u53d8\u91cf\u4ee5\u53ca\u5b9e\u4f8b\u7ea7\u53d8\u91cf\uff0c\u4f46\u4e0d\u5305\u62ec\u5728\u65b9\u6cd5\u5185\u90e8\u58f0\u660e\u7684\u5c40\u90e8\u53d8\u91cf\u3002\u4e00\u4e2a\u5b57\u6bb5\u7684\u63cf\u8ff0\u5305\u62ec:\u5b57\u6bb5\u7684\u4f5c\u7528\u57df(public,private,protected\u4fee\u9970\u7b26)\u3001\u662f\u5b9e\u4f8b\u53d8\u91cf\u8fd8\u662f\u7c7b\u53d8\u91cf(static\u4fee\u9970\u7b26)\u3001\u53ef\u53d8\u6027(final)\u3001\u5e76\u53d1\u53ef\u89c1\u6027(volatile\u4fee\u9970\u7b26\uff0c\u662f\u5426\u5f3a\u5236\u4ece\u4e3b\u5185\u5b58\u8bfb\u5199)\u3001\u53ef\u5426\u88ab\u5e8f\u5217\u5316(transient\u4fee\u9970\u7b26)\u3001\u5b57\u6bb5\u6570\u636e\u7c7b\u578b(\u57fa\u672c\u7c7b\u578b\uff0c\u6570\u7ec4\uff0c\u5bf9\u8c61)\u3001\u5b57\u6bb5\u540d\u79f0\u3002<\/p>\n<p>###6.\u65b9\u6cd5\u8868\u96c6\u5408<br \/>\n\u5b57\u6bb5\u8868\u4e4b\u540e\u662f\u65b9\u6cd5\u8868\u96c6\u5408\u3002\u5f88\u663e\u7136\uff0c\u5bf9\u65b9\u6cd5\u7684\u63cf\u8ff0\u548c\u5bf9\u5b57\u6bb5\u7684\u63cf\u8ff0\u662f\u5f88\u50cf\u7684\u3002volatile\u548ctransient\u4e0d\u80fd\u63cf\u8ff0\u65b9\u6cd5\uff0c\u4f46\u662fsyncronized\u3001native\u3001strictfp\u548cabstract\u662f\u65b9\u6cd5\u72ec\u6709\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>##\u4e00\u3001\u524d\u8a00 \u5728Java\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7javac\u5c06.java\u7684\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e3a.class\u7684\u7c7b\u6587\u4ef6\u3002\u4e4b\u524d\u4e00\u76f4\u4ee5\u4e3a &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-jvm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/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.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"##\u4e00\u3001\u524d\u8a00 \u5728Java\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7javac\u5c06.java\u7684\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e3a.class\u7684\u7c7b\u6587\u4ef6\u3002\u4e4b\u524d\u4e00\u76f4\u4ee5\u4e3a &hellip; \u7ee7\u7eed\u9605\u8bfbJava\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-19T09:36:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-19T10:14:18+00:00\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)\",\"datePublished\":\"2017-04-19T09:36:58+00:00\",\"dateModified\":\"2017-04-19T10:14:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\"},\"wordCount\":138,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"articleSection\":[\"java\u865a\u62df\u673a\u5b66\u4e60\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\",\"name\":\"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"datePublished\":\"2017-04-19T09:36:58+00:00\",\"dateModified\":\"2017-04-19T10:14:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b","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.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/","og_locale":"zh_CN","og_type":"article","og_title":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"##\u4e00\u3001\u524d\u8a00 \u5728Java\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7javac\u5c06.java\u7684\u6e90\u4ee3\u7801\u7f16\u8bd1\u4e3a.class\u7684\u7c7b\u6587\u4ef6\u3002\u4e4b\u524d\u4e00\u76f4\u4ee5\u4e3a &hellip; \u7ee7\u7eed\u9605\u8bfbJava\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)","og_url":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2017-04-19T09:36:58+00:00","article_modified_time":"2017-04-19T10:14:18+00:00","author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)","datePublished":"2017-04-19T09:36:58+00:00","dateModified":"2017-04-19T10:14:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/"},"wordCount":138,"commentCount":0,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"articleSection":["java\u865a\u62df\u673a\u5b66\u4e60"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/","url":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/","name":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a) - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"datePublished":"2017-04-19T09:36:58+00:00","dateModified":"2017-04-19T10:14:18+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2017\/04\/19\/java-study-lesson-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"Java\u865a\u62df\u673a\u5b66\u4e60\u8bb0\u5f55(\u4e5d)\u2014\u2014\u7c7b\u6587\u4ef6\u7ed3\u6784(\u4e0a)"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":3615,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/34\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}