锘??xml version="1.0" encoding="utf-8" standalone="yes"?>自拍偷拍一区二区三区,啊啊啊久久久,青青草国产精品97视觉盛宴 http://www.aygfsteel.com/zxt/澧欎笂鑺﹁媷錛屽ご閲嶈剼杞繪牴搴曟祬錛涘北闂寸絎嬶紝鍢村皷鐨帤鑵逛腑絀恒?/description>zh-cnThu, 19 Jun 2025 10:37:55 GMTThu, 19 Jun 2025 10:37:55 GMT60璇諱功絎旇錛歫ava鐨刢lass鏂囦歡鏍煎紡鍒嗘瀽錛堜竴錛?/title><link>http://www.aygfsteel.com/zxt/archive/2009/03/23/261487.html</link><dc:creator>Zang XT</dc:creator><author>Zang XT</author><pubDate>Mon, 23 Mar 2009 04:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/zxt/archive/2009/03/23/261487.html</guid><wfw:comment>http://www.aygfsteel.com/zxt/comments/261487.html</wfw:comment><comments>http://www.aygfsteel.com/zxt/archive/2009/03/23/261487.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zxt/comments/commentRss/261487.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zxt/services/trackbacks/261487.html</trackback:ping><description><![CDATA[<blockquote> <p>闃呰Java Virtual Machine Specification涓殑絎洓绔狅紝鐞嗚ВJava鐨刢lass鏂囦歡鏍煎紡銆?/p> <p>class鏂囦歡鐢?浣嶇殑瀛楄妭嫻佺粍鎴愩?/p> <p>The ClassFile Structure</p> <p>ClassFile{</p> <p>u4 magic;</p> <p>u2 minor_version;</p> <p>u2 major_version;</p> <p>u2 constant_pool_count;</p> <p>cp_info constant_pool[constant_pool_count-1];</p> <p>u2 access_flags;</p> <p>u2 this_class;</p> <p>u2 interfaces_count;</p> <p>u2 interfaces[interfaces_count];</p> <p>u2 fields_count;</p> <p>field_info fields[fields_count];</p> <p>u2 methods_count;</p> <p>method_info methods[methods_count];</p> <p>u2 attributes_count;</p> <p>attribute_info attributes[attrributes_count];</p> <p>}</p> <p>璇存槑錛歶2琛ㄧず鏃犵鍙?瀛楄妭閲忥紝u4琛ㄧず鏃犵鍙?瀛楄妭閲忋?/p> <p>鍚勫瓧孌電殑璇存槑錛?/p> <p>magic</p> <p>涓鑸簩榪涘埗鏂囦歡涓兘鏈塵agic number榪欎竴欏癸紝榪欎釜鏁拌鏄庤鏂囦歡鏄竴涓猚lass鏂囦歡錛屽畠鐨勫兼槸0xcAFEBABE銆?/p> <p>minor_version,major_version</p> <p>class鏂囦歡鐨勭増鏈彿銆?/p> <p>constant_pool_count </p> <p>甯擱噺姹犺〃涓」鐩暟鍔?寰楀埌銆備粠鍚庨潰鐨刢p_info constant_pool[constant_pool_count-1];涔熷鏄撶悊瑙h繖涓肩殑鎰忔濄?/p> <p>cp_info constant_pool[]</p> <p>瀛樺偍璇lass鏂囦歡涓嬌鐢ㄥ埌鐨勫父閲忎俊鎭?/p> <p>access_flag</p> <p>璇存槑璇lass鏂囦歡鐨勮闂潈闄愬拰鐩稿叧灞炴э紝閫氳繃浣嶆帺鐮佹潵璁懼畾銆?/p> <table style="width: 400px" cellspacing="0" cellpadding="2" border="1"> <tbody> <tr> <td valign="top" width="133">Flag Name</td> <td valign="top" width="133">鍊?/td> <td valign="top" width="133">瑙i噴</td></tr> <tr> <td valign="top" width="133">ACC_PUBLIC</td> <td valign="top" width="133">0x0001</td> <td valign="top" width="133">public</td></tr> <tr> <td valign="top" width="133">ACC_FINAL</td> <td valign="top" width="133">0x0010</td> <td valign="top" width="133">final</td></tr> <tr> <td valign="top" width="133">ACC_SUPER</td> <td valign="top" width="133">0x0020</td> <td valign="top" width="133">璺熻皟鐢╥nvokespecial鎸囦護鏃剁殑澶勭悊鏈夊叧</td></tr> <tr> <td valign="top" width="133">ACC_INTERFACE</td> <td valign="top" width="133">0x0200</td> <td valign="top" width="133">榪欐槸涓帴鍙?/td></tr> <tr> <td valign="top" width="133">ACC_ABSTRACT</td> <td valign="top" width="133">0x0400</td> <td valign="top" width="133">abastract</td></tr> <tr> <td valign="top" width="133">ACC_SYNTHETIC</td> <td valign="top" width="133">0x1000</td> <td valign="top" width="133">娌℃湁鍦ㄦ簮浠g爜涓嚭鐜幫紝璇ョ被鏄紪璇戝櫒鐢熸垚鐨?/td></tr> <tr> <td valign="top" width="133">ACC_ANNOTATION</td> <td valign="top" width="133">0x2000</td> <td valign="top" width="133">娉ㄨВ綾誨瀷</td></tr> <tr> <td valign="top" width="133">ACC_ENUM</td> <td valign="top" width="133">0x4000</td> <td valign="top" width="133">鏋氫婦綾誨瀷</td></tr></tbody></table> <p> </p> <p>榪欎簺灞炴ч兘寰堝鏄撶悊瑙o紝姣斿鎴戜滑瀹氫箟涓涓被public final Test{},鍒橳est.class鐨刟ccess_flag涓紝ACC_PUBLIC鍜孉CC_FINAL鏄疆浣嶇殑錛岃孉CC_INTERFACE涓欏硅偗瀹氭槸0銆傚緢澶氱被浼肩殑緇勫悎瑙勫垯鍊掓槸瀹規(guī)槗鑷繁鎬葷粨鍑烘潵錛屾瘮濡傚鏋淎CC_INTERFACE緗綅浜嗭紝閭h偗瀹欰CC_ABSTRACT涔熸槸緗綅鐨勶紝鍥犱負鎺ュ彛鑲畾鏄娊璞$殑錛涘鏋淎CC_ANNOTATION緗綅浜嗭紝閭CC_ANNOTATION鑲畾鍚屾椂緗綅錛岀瓑絳夛紝璇稿姝ょ被銆?/p> <p>鐢諱竴涓叿浣撶殑浣嶇ず鎰忓浘琛ㄧず錛?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/zxt/WindowsLiveWriter/javaclass_EA43/image_2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="120" alt="image" src="http://www.aygfsteel.com/images/blogjava_net/zxt/WindowsLiveWriter/javaclass_EA43/image_thumb.png" width="244" border="0"></a> </p> <p>this_class </p> <p>涓涓笅鏍囷紝鎸囧悜甯擱噺姹犺〃涓唬琛ㄥ綋鍓嶇被鐨凜onstant_Class_info銆?/p> <p>super_class</p> <p>涓?錛屾垨鑰呬負涓涓笅鏍囷紝鎸囧悜甯擱噺姹犱腑浠h〃鍏剁埗綾葷殑Constant_Class_info銆傚鏋滆繖涓間負0錛岄偅涔堝綋鍓嶇被鑲畾鏄疧bject綾匯傚鏋滃綋鍓嶇被鏄竴涓帴鍙o紝璇ヤ笅鏍囨寚鍚戠殑鏄疧bject綾葷殑鎻忚堪淇℃伅銆?/p> <p>interface_count</p> <p>璇ョ被瀹炵幇鐨勬帴鍙f暟錛屾垨鑰呰鎺ュ彛瀹炵幇鐨勮秴鎺ュ彛鏁般?/p> <p>interfaces[]</p> <p>鍏蜂綋鐨勬帴鍙d俊鎭紝姣忎竴欏歸兘鏄父閲忔睜琛ㄤ腑鐨勪竴涓笅鏍囷紝鎸囧悜琛ㄧず鎺ュ彛鐨凜onstant_Class_info銆?/p> <p>鍚庨潰鍑犱釜渚濇鏄瓧孌碉紙field錛夛紝鏂規(guī)硶錛坢ethods錛夊拰灞炴х殑鎻忚堪錛屼笉鍐嶈禈榪幫紝</p></blockquote> <p> </p> <blockquote> <p>涓嬮潰鍏蜂綋鐨勫垎鏋愪竴涓猚lass鏂囦歡銆傛簮鏂囦歡寰堢畝鍗曪細</p> <p>public class Test{ <br>public static void main(String[] args){ <br>System.out.println("Hello World!"); <br>} <br>}</p> <p> </p> <p>緙栬瘧錛屽緱鍒癟est.class鏂囦歡錛屼嬌鐢╓inHex鎵撳紑銆?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/zxt/WindowsLiveWriter/javaclass_EA43/image_4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="242" alt="image" src="http://www.aygfsteel.com/images/blogjava_net/zxt/WindowsLiveWriter/javaclass_EA43/image_thumb_1.png" width="244" border="0"></a> </p> <p>鍓?涓瓧鑺傛槸magic閮ㄥ垎錛屽唴瀹逛負0xCAFEBABE;闅忓悗鐨?涓瓧鑺傛槸class鏂囦歡鐨勭増鏈彿錛岃繖閲屼富鐗堟湰鍙鋒槸0x0032錛屼篃灝辨槸50錛岃繖鏄嬌鐢╦dk1.6緙栬瘧鍑虹殑class鏂囦歡銆傚啀鍚庨潰鐨?涓瓧鑺傛槸甯擱噺姹犺〃鐨勫ぇ灝忎俊鎭紝0x001D錛屼篃灝辨槸29錛岃鏄庡父閲忔睜琛ㄤ腑涓鍏辨湁28欏廣備負浜嗘柟渚胯瀵燂紝鍙互浣跨敤javap -verbose Test寰楀埌鐨勭粨鏋滃拰褰撳墠鐨勪簩榪涘埗鏂囦歡榪涜瀵規(guī)瘮銆?/p> <p>鍏ラ棬鍒版錛屼互鍚庣戶緇?/p></blockquote><img src ="http://www.aygfsteel.com/zxt/aggbug/261487.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zxt/" target="_blank">Zang XT</a> 2009-03-23 12:20 <a href="http://www.aygfsteel.com/zxt/archive/2009/03/23/261487.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀛︿範鐩爣http://www.aygfsteel.com/zxt/archive/2009/03/21/261225.htmlZang XTZang XTSat, 21 Mar 2009 10:28:00 GMThttp://www.aygfsteel.com/zxt/archive/2009/03/21/261225.htmlhttp://www.aygfsteel.com/zxt/comments/261225.htmlhttp://www.aygfsteel.com/zxt/archive/2009/03/21/261225.html#Feedback0http://www.aygfsteel.com/zxt/comments/commentRss/261225.htmlhttp://www.aygfsteel.com/zxt/services/trackbacks/261225.html

       浠ヤ竴縐嶇帺鐨勫績鎬佸涔爅ava錛屽叧娉╦ava鐨勭紪璇戝疄鐜板拰java铏氭嫙鏈哄師鐞嗭紝鏆傛椂涓嶅幓鍏蟲敞java鐩稿叧鐨勫悇縐嶅簲鐢ㄣ傜洰鏍囦笉鑳藉お澶氾紝鏇翠笉鑳藉お楂橈紝鍒囧繉錛?
鍑犱釜鍏蜂綋鐨勶紝鍙搷浣滅殑鐩爣錛?
       class鏂囦歡鏍煎紡鍒嗘瀽銆傛牴鎹甹vm瑙勮寖涓殑瀹氫箟錛岀悊瑙lass鏂囦歡緇撴瀯錛岃兘鑷繁鍐欎竴涓垎鏋愬伐鍏鳳紱鍒嗘瀽javap鐨勬簮浠g爜銆?nbsp; 娣卞叆瀛︿範緙栬瘧鍘熺悊錛屽垎鏋恓avac鐨勬簮浠g爜銆備互鍓嶅垎鏋愯繃涓灝忛儴鍒嗭紝浣嗕笉澶熸繁鍏ャ?
       鐮旂┒澶氱嚎紼嬬紪紼嬫ā鍨嬶紝鏈夊嚑鏈功閲嶇偣鐨勭湅涓涓嬶紝銆妘nix緗戠粶緙栫▼銆嬶紝銆婇潰鍚戞ā寮忕殑杞歡浣撶郴緇撴瀯鍗?錛氱敤浜庡茍鍙戝拰緗戠粶鍖栧璞$殑妯″紡銆嬶紝銆奝ATTERN-ORIENTED SOFTWARE ARCHITECTURE A Pattern Language for Distributed Computing銆嬶紝銆奐ava Concurrency in Practice銆嬨?
       openjdk宸茬粡鍦║buntu涓婃瀯寤烘垚鍔燂紝鍙互鑰冭檻榪涜涓浜涜窡韙拰璋冭瘯鍒嗘瀽銆?/p>

Zang XT 2009-03-21 18:28 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 襄城县| 墨玉县| 封丘县| 永德县| 宝坻区| 巴塘县| 都安| 富阳市| 阳山县| 科尔| 双辽市| 方城县| 田阳县| 吴忠市| 汉沽区| 昆山市| 广水市| 广德县| 肥城市| 内黄县| 闸北区| 右玉县| 南投市| 泸定县| 辉南县| 苍溪县| 四子王旗| 克拉玛依市| 财经| 长汀县| 赤水市| 南安市| 安龙县| 舟曲县| 宁都县| 博爱县| 沙坪坝区| 盐池县| 若羌县| 延庆县| 商都县|