{"id":171,"date":"2017-07-31T11:08:47","date_gmt":"2017-07-31T03:08:47","guid":{"rendered":"http:\/\/jason19659.pw\/?p=171"},"modified":"2017-07-31T11:08:47","modified_gmt":"2017-07-31T03:08:47","slug":"java-%e7%bb%a7%e6%89%bf%e9%87%8d%e8%bd%bd%e5%88%9d%e5%a7%8b%e5%8c%96%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"https:\/\/t2t2.cc\/?p=171","title":{"rendered":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751"},"content":{"rendered":"<p>\u7ee7\u7eed\u8f6c\u8f7d\u5f53\u5e74\u7684\u5751\u7cfb\u5217\uff0c\u8fd9\u4e2a\u7cfb\u5217\u7684\u9898\u76ee\u90fd\u662f\u5f53\u5e74\u4ece\u5404\u79cd\u5751\u4e2d\u6536\u96c6\u800c\u6765\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class \u521d\u59cb\u5316\u91cd\u8f7d {\r\n    public static void main(String&#x5B;] args) {\r\n        new Derived();\r\n    }\r\n}\r\n \r\nclass Base {\r\n    private int i = 2;\r\n     \r\n    public Base() {\r\n        display();\r\n    }\r\n    public void display() {\r\n        System.out.println(i);\r\n    }\r\n}\r\n \r\nclass Derived extends Base {\r\n    private int i = 22;\r\n     \r\n    public Derived() {\r\n        i = 222;\r\n    }\r\n     \r\n    public void display() {\r\n        System.out.println(i);\r\n    }\r\n}\r\n<\/pre>\n<p>\u95ee\uff1a\u4f1a\u8f93\u51fa\u4ec0\u4e48\uff1f<br \/>\n\u7b54\u6848\uff1a<br \/>\n<!--more--><\/p>\n<p>\u8f93\u51fa 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ee7\u7eed\u8f6c\u8f7d\u5f53\u5e74\u7684\u5751\u7cfb\u5217\uff0c\u8fd9\u4e2a\u7cfb\u5217\u7684\u9898\u76ee\u90fd\u662f\u5f53\u5e74\u4ece\u5404\u79cd\u5751\u4e2d\u6536\u96c6\u800c\u6765\u7684\u3002 &nbsp; &nbsp; public &hellip; <a href=\"https:\/\/t2t2.cc\/?p=171\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[1],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-data"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"jason\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/t2t2.cc\/?p=171\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Jason&#039;s Blog |\" \/>\n\t\t<meta property=\"og:type\" content=\"activity\" \/>\n\t\t<meta property=\"og:title\" content=\"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/t2t2.cc\/?p=171\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"180\" \/>\n\t\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#article\",\"name\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751 | Jason's Blog\",\"headline\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751\",\"author\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"jason\"},\"datePublished\":\"2017-07-31T11:08:47+08:00\",\"dateModified\":\"2017-07-31T11:08:47+08:00\",\"inLanguage\":\"zh-CN\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#webpage\"},\"articleSection\":\"\\u65e5\\u5fd7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/t2t2.cc\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?cat=1#listItem\",\"name\":\"\\u65e5\\u5fd7\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?cat=1#listItem\",\"position\":2,\"name\":\"\\u65e5\\u5fd7\",\"item\":\"https:\\\/\\\/t2t2.cc\\\/?cat=1\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#listItem\",\"name\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#listItem\",\"position\":3,\"name\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?cat=1#listItem\",\"name\":\"\\u65e5\\u5fd7\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#person\",\"name\":\"jason\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"jason\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\",\"url\":\"https:\\\/\\\/t2t2.cc\\\/?author=1\",\"name\":\"jason\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"jason\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#webpage\",\"url\":\"https:\\\/\\\/t2t2.cc\\\/?p=171\",\"name\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751 | Jason's Blog\",\"description\":\"java \\u7ee7\\u627f\\u91cd\\u8f7d\\u521d\\u59cb\\u5316\\u7684\\u5751\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=171#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"datePublished\":\"2017-07-31T11:08:47+08:00\",\"dateModified\":\"2017-07-31T11:08:47+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#website\",\"url\":\"https:\\\/\\\/t2t2.cc\\\/\",\"name\":\"Jason's Blog\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason's Blog","description":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","canonical_url":"https:\/\/t2t2.cc\/?p=171","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/t2t2.cc\/?p=171#article","name":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason's Blog","headline":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","author":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"publisher":{"@id":"https:\/\/t2t2.cc\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/t2t2.cc\/?p=171#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g","width":96,"height":96,"caption":"jason"},"datePublished":"2017-07-31T11:08:47+08:00","dateModified":"2017-07-31T11:08:47+08:00","inLanguage":"zh-CN","mainEntityOfPage":{"@id":"https:\/\/t2t2.cc\/?p=171#webpage"},"isPartOf":{"@id":"https:\/\/t2t2.cc\/?p=171#webpage"},"articleSection":"\u65e5\u5fd7"},{"@type":"BreadcrumbList","@id":"https:\/\/t2t2.cc\/?p=171#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/#listItem","position":1,"name":"Home","item":"https:\/\/t2t2.cc\/","nextItem":{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?cat=1#listItem","name":"\u65e5\u5fd7"}},{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?cat=1#listItem","position":2,"name":"\u65e5\u5fd7","item":"https:\/\/t2t2.cc\/?cat=1","nextItem":{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?p=171#listItem","name":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751"},"previousItem":{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?p=171#listItem","position":3,"name":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","previousItem":{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?cat=1#listItem","name":"\u65e5\u5fd7"}}]},{"@type":"Person","@id":"https:\/\/t2t2.cc\/#person","name":"jason","image":{"@type":"ImageObject","@id":"https:\/\/t2t2.cc\/?p=171#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g","width":96,"height":96,"caption":"jason"}},{"@type":"Person","@id":"https:\/\/t2t2.cc\/?author=1#author","url":"https:\/\/t2t2.cc\/?author=1","name":"jason","image":{"@type":"ImageObject","@id":"https:\/\/t2t2.cc\/?p=171#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g","width":96,"height":96,"caption":"jason"}},{"@type":"WebPage","@id":"https:\/\/t2t2.cc\/?p=171#webpage","url":"https:\/\/t2t2.cc\/?p=171","name":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason's Blog","description":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","inLanguage":"zh-CN","isPartOf":{"@id":"https:\/\/t2t2.cc\/#website"},"breadcrumb":{"@id":"https:\/\/t2t2.cc\/?p=171#breadcrumblist"},"author":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"creator":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"datePublished":"2017-07-31T11:08:47+08:00","dateModified":"2017-07-31T11:08:47+08:00"},{"@type":"WebSite","@id":"https:\/\/t2t2.cc\/#website","url":"https:\/\/t2t2.cc\/","name":"Jason's Blog","inLanguage":"zh-CN","publisher":{"@id":"https:\/\/t2t2.cc\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Jason's Blog |","og:type":"activity","og:title":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason's Blog","og:description":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","og:url":"https:\/\/t2t2.cc\/?p=171","og:image":"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg","og:image:secure_url":"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg","og:image:width":180,"og:image:height":180,"twitter:card":"summary","twitter:title":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | Jason's Blog","twitter:description":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","twitter:image":"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg"},"aioseo_meta_data":{"post_id":"171","title":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751 | #site_title","description":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"activity","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-08-02 11:35:46","updated":"2026-10-20 19:22:43","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/t2t2.cc\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/t2t2.cc\/?cat=1\" title=\"\u65e5\u5fd7\">\u65e5\u5fd7<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tjava \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/t2t2.cc\/"},{"label":"\u65e5\u5fd7","link":"https:\/\/t2t2.cc\/?cat=1"},{"label":"java \u7ee7\u627f\u91cd\u8f7d\u521d\u59cb\u5316\u7684\u5751","link":"https:\/\/t2t2.cc\/?p=171"}],"_links":{"self":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":1,"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}