{"id":137,"date":"2016-09-09T14:38:25","date_gmt":"2016-09-09T06:38:25","guid":{"rendered":"http:\/\/jason19659.pw\/?p=137"},"modified":"2016-09-09T14:40:18","modified_gmt":"2016-09-09T06:40:18","slug":"2013%e5%b9%b4%e6%80%bb%e7%bb%93%e7%9a%84java%e9%87%8c%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"https:\/\/t2t2.cc\/?p=137","title":{"rendered":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751"},"content":{"rendered":"<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\r\n1 \u5173\u4e8eInteger int\r\nInteger t1 = 111;\r\nInteger t2 = 111;\r\nInteger t3 = new Integer(111);\r\nInteger t4 = Integer.valueOf(111);\r\nInteger s1 = 222;\r\nInteger s2 = 222;\r\nInteger s3 = new Integer(222);\r\nInteger s4 = Integer.valueOf(222);\r\nSystem.out.println(t1 == t2); \/\/true\r\nSystem.out.println(t1 == t3); \/\/false\r\nSystem.out.println(t1 == t4); \/\/true\r\nSystem.out.println(s1 == s2); \/\/false\r\nSystem.out.println(s1 == s3); \/\/false\r\nSystem.out.println(s1 == s4); \/\/false\r\n\r\n2 String\r\nString a = &quot;JAVA&quot;;\r\nString b = &quot;JAVA&quot;;\r\nString c = new String(&quot;JAVA&quot;);\r\nString d = &quot;JA&quot;;\r\nString e = &quot;VA&quot;;\r\nString f = &quot;JA&quot;+&quot;VA&quot;;\r\nString g = d+e;\r\nString h = c ;\r\nSystem.out.println(a==b); \/\/true\r\nSystem.out.println(a==c); \/\/false\r\nSystem.out.println(a==f); \/\/true\r\nSystem.out.println(a==g); \/\/false\r\nSystem.out.println(c==f); \/\/false\r\nSystem.out.println(c==g); \/\/false\r\nSystem.out.println(c==h); \/\/true\r\n3.\u6570\u7ec4,=\r\nint a=0;\r\nint b&#x5B;]=new int&#x5B;5];\r\nint c=3;\r\nb&#x5B;a]=a=c;\r\nSystem.out.println(b&#x5B;0] + &quot; &quot; + b&#x5B;3]); \/\/3 0\r\n4 static\r\nstatic {\r\nname = &quot;B&quot;;\r\n}\r\nstatic String name = &quot;A&quot;;\r\nstatic {\r\nSystem.out.println(name); \/\/A\r\n}\r\n\u8f93\u51fa\u7684name \u662f\u4ec0\u4e48\u5462?\r\n5.short\r\nshort a = 1;\r\na = a ++;\/\/\u4f1a\u62a5\u9519\u5417? \u4e0d\u4f1a\r\nshort a = 1;\r\na = a + 1;\/\/\u4f1a\u62a5\u9519\u5417? \u4f1a\r\nshort a = 1;\r\na += 1;\/\/ \u4f1a\u62a5\u9519\u5417? \u4e0d\u4f1a\r\n\r\n<\/pre>\n<p>\u539f\u5730\u5740<a href=\"http:\/\/user.qzone.qq.com\/243404061\/2\">http:\/\/user.qzone.qq.com\/243404061\/2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 111; Int&hellip; <a href=\"https:\/\/t2t2.cc\/?p=137\">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-137","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] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1\" \/>\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=137\" \/>\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=\"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/t2t2.cc\/?p=137\" \/>\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=\"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1\" \/>\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=137#article\",\"name\":\"2013\\u5e74\\u603b\\u7ed3\\u7684java\\u91cc\\u7684\\u5751 | Jason's Blog\",\"headline\":\"2013\\u5e74\\u603b\\u7ed3\\u7684java\\u91cc\\u7684\\u5751\",\"author\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"jason\"},\"datePublished\":\"2016-09-09T14:38:25+08:00\",\"dateModified\":\"2016-09-09T14:40:18+08:00\",\"inLanguage\":\"zh-CN\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#webpage\"},\"articleSection\":\"\\u65e5\\u5fd7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#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=137#listItem\",\"name\":\"2013\\u5e74\\u603b\\u7ed3\\u7684java\\u91cc\\u7684\\u5751\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#listItem\",\"position\":3,\"name\":\"2013\\u5e74\\u603b\\u7ed3\\u7684java\\u91cc\\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=137#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=137#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=137#webpage\",\"url\":\"https:\\\/\\\/t2t2.cc\\\/?p=137\",\"name\":\"2013\\u5e74\\u603b\\u7ed3\\u7684java\\u91cc\\u7684\\u5751 | Jason's Blog\",\"description\":\"[java] 1 \\u5173\\u4e8eInteger int Integer t1 = 111; Integer t2 = 1\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?p=137#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/t2t2.cc\\\/?author=1#author\"},\"datePublished\":\"2016-09-09T14:38:25+08:00\",\"dateModified\":\"2016-09-09T14:40:18+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":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason's Blog","description":"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1","canonical_url":"https:\/\/t2t2.cc\/?p=137","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/t2t2.cc\/?p=137#article","name":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason's Blog","headline":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751","author":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"publisher":{"@id":"https:\/\/t2t2.cc\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/t2t2.cc\/?p=137#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/18561e923c466a267e9ab413a1698a8adf4239af59ca334407d910141fddc8c6?s=96&r=g","width":96,"height":96,"caption":"jason"},"datePublished":"2016-09-09T14:38:25+08:00","dateModified":"2016-09-09T14:40:18+08:00","inLanguage":"zh-CN","mainEntityOfPage":{"@id":"https:\/\/t2t2.cc\/?p=137#webpage"},"isPartOf":{"@id":"https:\/\/t2t2.cc\/?p=137#webpage"},"articleSection":"\u65e5\u5fd7"},{"@type":"BreadcrumbList","@id":"https:\/\/t2t2.cc\/?p=137#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=137#listItem","name":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751"},"previousItem":{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/t2t2.cc\/?p=137#listItem","position":3,"name":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\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=137#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=137#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=137#webpage","url":"https:\/\/t2t2.cc\/?p=137","name":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason's Blog","description":"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1","inLanguage":"zh-CN","isPartOf":{"@id":"https:\/\/t2t2.cc\/#website"},"breadcrumb":{"@id":"https:\/\/t2t2.cc\/?p=137#breadcrumblist"},"author":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"creator":{"@id":"https:\/\/t2t2.cc\/?author=1#author"},"datePublished":"2016-09-09T14:38:25+08:00","dateModified":"2016-09-09T14:40:18+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":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason's Blog","og:description":"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1","og:url":"https:\/\/t2t2.cc\/?p=137","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":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751 | Jason's Blog","twitter:description":"[java] 1 \u5173\u4e8eInteger int Integer t1 = 111; Integer t2 = 1","twitter:image":"https:\/\/t2t2.cc\/wp-content\/uploads\/2016\/12\/47062d21jw8ex2adqbqv3j2050050wes.jpg"},"aioseo_meta_data":{"post_id":"137","title":null,"description":null,"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 13:24:26","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\t2013\u5e74\u603b\u7ed3\u7684java\u91cc\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":"2013\u5e74\u603b\u7ed3\u7684java\u91cc\u7684\u5751","link":"https:\/\/t2t2.cc\/?p=137"}],"_links":{"self":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/137","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=137"}],"version-history":[{"count":4,"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/t2t2.cc\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t2t2.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}