{"id":689,"date":"2022-09-30T04:37:46","date_gmt":"2023-04-25T09:20:59","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/"},"modified":"2025-08-01T01:40:53","modified_gmt":"2025-07-31T16:40:53","slug":"java-12-%e3%81%ae%e7%89%b9%e5%be%b4","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/","title":{"rendered":"Java 12 \u306e\u7279\u5fb4"},"content":{"rendered":"<p>\u3064\u3044\u306b\u3001\uff16\u30f6\u6708\u306e\u30ea\u30ea\u30fc\u30b9\u30b5\u30a4\u30af\u30eb\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001JDK 12\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u524d\u56de\u306eJava LTS\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f311\u306e\u5f8c\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002\u4ee5\u524d\u306b\u3001\u79c1\u305f\u3061\u306fJava 11\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8a71\u3057\u5408\u3044\u307e\u3057\u305f\u3002\u4eca\u65e5\u306f\u3001Java 12\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8b70\u8ad6\u3057\u3001\u958b\u767a\u8005\u306b\u3069\u306e\u3088\u3046\u306a\u8981\u7d20\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002Java 12\u306f2019\u5e743\u670819\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001Non-LTS\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u9577\u671f\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u306f\u53d7\u3051\u3089\u308c\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>Java 12 \u306e\u65b0\u6a5f\u80fd<\/h2>\n<p>Java 12\u306e\u91cd\u8981\u306a\u7279\u5fb4\u306e\u4e00\u90e8\u306f\u3001<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>JVM\u306e\u5909\u66f4 &#8211; JEP 189\u3001JEP 346\u3001JEP 344\u3001\u304a\u3088\u3073JEP 230\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b9\u30a4\u30c3\u30c1\u5f0f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d5\u30a1\u30a4\u30eb\u306emismatch()\u30e1\u30bd\u30c3\u30c9<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u6570\u5024\u306e\u66f8\u5f0f\u8a2d\u5b9a<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b9\u30c8\u30ea\u30fc\u30e0API\u3067\u306eTeeing Collectors<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java\u306e\u65b0\u3057\u3044\u6587\u5b57\u5217\u30e1\u30bd\u30c3\u30c9 &#8211; indent()\u3001transform()\u3001describeConstable()\u3001\u304a\u3088\u3073resolveConstantDesc()\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>JEP 334\uff1aJVM Constants API<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>JEP 305\uff1ainstanceof\u306e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>JDK 12\u304b\u3089Raw String Literals\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002<\/ol>\n<p>\u4e00\u3064\u305a\u3064\u3001\u3053\u308c\u3089\u306eJava 12\u306e\u6a5f\u80fd\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>JVM \u306e\u5909\u66f4<\/h2>\n<h3>1. JEP 189 &#8211; \u30b7\u30a7\u30ca\u30f3\u30c9\u30a2\uff1a\u4f4e\u9045\u5ef6\u306e\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30bf\u30fc\uff08\u5b9f\u9a13\u7684\uff09<\/h3>\n<p>RedHat\u306f\u3001GC\u306e\u4e00\u6642\u505c\u6b62\u6642\u9593\u3092\u77ed\u7e2e\u3059\u308b\u305f\u3081\u306bShenandoah\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30bf\u30fc\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30a2\u30a4\u30c7\u30a2\u306f\u3001\u5b9f\u884c\u4e2d\u306eJava\u30b9\u30ec\u30c3\u30c9\u3068\u540c\u6642\u306bGC\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u306b\u95a2\u4fc2\u306a\u304f\u3001\u4e00\u8cab\u6027\u306e\u3042\u308b\u4e88\u6e2c\u53ef\u80fd\u306a\u77ed\u3044\u4e00\u6642\u505c\u6b62\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u304c15MB\u3067\u308215GB\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001Java 12\u306e\u5b9f\u9a13\u7684\u306a\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<h3>2. JEP 346 &#8211; G1\u304b\u3089\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5272\u308a\u5f53\u3066\u6e08\u307f\u30e1\u30e2\u30ea\u3092\u901f\u3084\u304b\u306b\u8fd4\u9084\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>Java 12\u304b\u3089\u3001G1\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u6642\u306bJava\u30d2\u30fc\u30d7\u30e1\u30e2\u30ea\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u305d\u308c\u3092\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u8fd4\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7a7a\u304d\u30e1\u30e2\u30ea\u3092\u78ba\u4fdd\u3057\u3001\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u4e88\u9632\u7b56\u3067\u3059\u3002<\/p>\n<h3>3. JEP 344 : G1\u306e\u4e2d\u65ad\u53ef\u80fd\u306a\u6df7\u5408\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>G1\u52b9\u7387\u306e\u5411\u4e0a\u306b\u306f\u3001\u5b9a\u7fa9\u3055\u308c\u305f\u4e00\u6642\u505c\u6b62\u76ee\u6a19\u3092\u8d85\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u5834\u5408\u306b\u3001G1\u6df7\u5408\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4e2d\u6b62\u53ef\u80fd\u306b\u3059\u308b\u3053\u3068\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6df7\u5408\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30bb\u30c3\u30c8\u3092\u5fc5\u9808\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u884c\u308f\u308c\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001G1\u30b3\u30ec\u30af\u30bf\u30fc\u306f\u3001\u4e00\u6642\u505c\u6b62\u6642\u9593\u306e\u76ee\u6a19\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a\u5fc5\u9808\u30bb\u30c3\u30c8\u306e\u53ce\u96c6\u306b\u512a\u5148\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>4. JEP 230\u3068344<\/h3>\n<p>\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u65e5\u672c\u8a9e\u3067\u4ee5\u4e0b\u3092\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<\/p>\n<p>JDK\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u57fa\u672c\u7684\u306a\u30de\u30a4\u30af\u30ed\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30b9\u30a4\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308bJEP 230\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001\u65e2\u5b58\u306e\u30de\u30a4\u30af\u30ed\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u5b9f\u884c\u3057\u305f\u308a\u65b0\u3057\u3044\u3082\u306e\u3092\u4f5c\u6210\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u5bb9\u6613\u306b\u306a\u308a\u307e\u3057\u305f\u3002JEP 344\u306e\u4e00\u3064\u306eAArch64\u30dd\u30fc\u30c8\u306f\u300132\u30d3\u30c3\u30c8ARM\u30dd\u30fc\u30c8\u306864\u30d3\u30c3\u30c8aarch64\u30dd\u30fc\u30c8\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u3001arm64\u30dd\u30fc\u30c8\u306b\u95a2\u9023\u3059\u308b\u3059\u3079\u3066\u306e\u30bd\u30fc\u30b9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8ca2\u732e\u8005\u306f\u4e00\u3064\u306e64\u30d3\u30c3\u30c8ARM\u5b9f\u88c5\u306b\u96c6\u4e2d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>5. JEP 341 \u30c7\u30d5\u30a9\u30eb\u30c8\u306eCDS\u30a2\u30fc\u30ab\u30a4\u30d6<\/h3>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u300164\u30d3\u30c3\u30c8\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30af\u30e9\u30b9\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30b9\u30c7\u30fc\u30bf\u5171\u6709\uff08CDS\uff09\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306eJDK\u30d3\u30eb\u30c9\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u76ee\u6a19\u306f\u3001\u8d77\u52d5\u6642\u9593\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u3067\u3059\u3002Java 12\u304b\u3089\u3001CDS\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067ON\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002CDS\u3092\u30aa\u30d5\u306b\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>java -Xshare:off HelloWorld.java\r\n<\/code><\/pre>\n<p>\u4eca\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8d77\u52d5\u6642\u9593\u304c\u9045\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u8a00\u8a9e\u306e\u5909\u5316\u3068\u7279\u5fb4<\/h2>\n<p>Java 12\u3067\u306f\u3001\u591a\u304f\u306e\u8a00\u8a9e\u306e\u7279\u5fb4\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u308c\u3089\u3092\u3044\u304f\u3064\u304b\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>1. \u30b9\u30a4\u30c3\u30c1\u5f0f\uff08\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\uff09<\/h3>\n<p>Java 12\u3067\u306f\u3001\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u305f\u3081\u306bSwitch\u5f0f\u304c\u5f37\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002JEP 325\u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u69cb\u6587\u306f\u3001\u30d7\u30ec\u30d3\u30e5\u30fc\u8a00\u8a9e\u6a5f\u80fd\u3068\u3057\u3066\u306e\u5f79\u5272\u3092\u679c\u305f\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u3001Switch\u5f0f\u306b\u95a2\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>The new Syntax removes the need for break statement to prevent fallthroughs.<\/li>\n<li>Switch Expressions don\u2019t fall through anymore.<\/li>\n<li>Furthermore, we can define multiple constants in the same label.<\/li>\n<li>default case is now compulsory in Switch Expressions.<\/li>\n<li>break is used in Switch Expressions to return values from a case itself.<\/li>\n<\/ul>\n<p>\u30af\u30e9\u30b7\u30c3\u30af\u306a\u30b9\u30a4\u30c3\u30c1\u6587\uff1a<\/p>\n<pre class=\"post-pre\"><code>String result = \"\";\r\n        switch (day) {\r\n            case \"M\":\r\n            case \"W\":\r\n            case \"F\": {\r\n                result = \"MWF\";\r\n                break;\r\n            }\r\n            case \"T\":\r\n            case \"TH\":\r\n            case \"S\": {\r\n                result = \"TTS\";\r\n                break;\r\n            }\r\n        };\r\n\r\n        System.out.println(\"Old Switch Result:\");\r\n        System.out.println(result);\r\n<\/code><\/pre>\n<p>\u65b0\u3057\u3044Switch\u5f0f\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d6\u30ec\u30a4\u30af\u3092\u3069\u3053\u306b\u3067\u3082\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u305d\u306e\u7d50\u679c\u3001\u8ad6\u7406\u30a8\u30e9\u30fc\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n<pre class=\"post-pre\"><code>String result = switch (day) {\r\n            case \"M\", \"W\", \"F\" -&gt; \"MWF\";\r\n            case \"T\", \"TH\", \"S\" -&gt; \"TTS\";\r\n            default -&gt; {\r\n                if(day.isEmpty())\r\n                    break \"Please insert a valid day.\";\r\n                else\r\n                    break \"Looks like a Sunday.\";\r\n            }\r\n\r\n        };\r\n\r\n        System.out.println(result);\r\n<\/code><\/pre>\n<p>JDK 12\u3092\u4f7f\u3063\u3066\u65b0\u3057\u3044\u30b9\u30a4\u30c3\u30c1\u5f0f\u3092\u542b\u3093\u3060\u4e0b\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>public class SwitchExpressions {\r\n\r\n    public static void main(String[] args)\r\n    {\r\n        System.out.println(\"New Switch Expression result:\");\r\n        executeNewSwitchExpression(\"M\");\r\n        executeNewSwitchExpression(\"TH\");\r\n        executeNewSwitchExpression(\"\");\r\n        executeNewSwitchExpression(\"SUN\");\r\n    }\r\n\r\n    public static void executeNewSwitchExpression(String day){\r\n\r\n        String result = switch (day) {\r\n            case \"M\", \"W\", \"F\" -&gt; \"MWF\";\r\n            case \"T\", \"TH\", \"S\" -&gt; \"TTS\";\r\n            default -&gt; {\r\n                if(day.isEmpty())\r\n                    break \"Please insert a valid day.\";\r\n                else\r\n                    break \"Looks like a Sunday.\";\r\n            }\r\n\r\n        };\r\n\r\n        System.out.println(result);\r\n    }\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3067\u3059\u306e\u3067\u3001Java 12\u30d7\u30ec\u30d3\u30e5\u30fc\u30ec\u30d9\u30eb\u3092\u9078\u629e\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>javac -Xlint:preview --enable-preview -source 12 src\/main\/java\/SwitchExpressions.java\r\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u4ee5\u4e0b\u306e\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564965edaa94e2bdf7bf9e9\/32-0.png\" alt=\"Java Switch Expressions Program Output\" \/><\/div>\n<p>\u30b9\u30a4\u30c3\u30c1\u5f0f\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u8a00\u8a9e\u6a5f\u80fd\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u5b8c\u6210\u3057\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u5c06\u6765\u306eJava\u30ea\u30ea\u30fc\u30b9\u3067\u78ba\u8a8d\u3055\u308c\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\uff12. File.mismatch \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>Java 12\u3067\u306f\u3001\u4e8c\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code>public static long mismatch(Path path, Path path2) throws IOException\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6700\u521d\u306e\u4e0d\u4e00\u81f4\u306e\u4f4d\u7f6e\u3092\u8fd4\u3057\u307e\u3059\u3002\u3082\u3057\u4e0d\u4e00\u81f4\u304c\u306a\u3044\u5834\u5408\u306f-1L\u3092\u8fd4\u3057\u307e\u3059\u30022\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u4e0d\u4e00\u81f4\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>If the bytes are not identical. In this case, the position of the first mismatching byte is returned.<\/li>\n<li>File sizes are not identical. In this case, the size of the smaller file is returned.<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306b\u3001IntelliJ Idea\u304b\u3089\u306e\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.io.IOException;\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Path;\r\n\r\npublic class FileMismatchExample {\r\n\r\n    public static void main(String[] args) throws IOException {\r\n        Path filePath1 = Files.createTempFile(\"file1\", \".txt\");\r\n        Path filePath2 = Files.createTempFile(\"file2\", \".txt\");\r\n        Files.writeString(filePath1,\"JournalDev Test String\");\r\n        Files.writeString(filePath2,\"JournalDev Test String\");\r\n\r\n        long mismatch = Files.mismatch(filePath1, filePath2);\r\n\r\n        System.out.println(\"File Mismatch position... It returns -1 if there is no mismatch\");\r\n\r\n        System.out.println(\"Mismatch position in file1 and file2 is &gt;&gt;&gt;&gt;\");\r\n        System.out.println(mismatch);\r\n\r\n        filePath1.toFile().deleteOnExit();\r\n        filePath2.toFile().deleteOnExit();\r\n\r\n        System.out.println();\r\n\r\n        Path filePath3 = Files.createTempFile(\"file3\", \".txt\");\r\n        Path filePath4 = Files.createTempFile(\"file4\", \".txt\");\r\n        Files.writeString(filePath3,\"JournalDev Test String\");\r\n        Files.writeString(filePath4,\"JournalDev.com Test String\");\r\n\r\n        long mismatch2 = Files.mismatch(filePath3, filePath4);\r\n\r\n        System.out.println(\"Mismatch position in file3 and file4 is &gt;&gt;&gt;&gt;\");\r\n        System.out.println(mismatch2);\r\n\r\n        filePath3.toFile().deleteOnExit();\r\n        filePath4.toFile().deleteOnExit();\r\n\r\n\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eJava\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3057\u305f\u5834\u5408\u306e\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564965edaa94e2bdf7bf9e9\/42-0.png\" alt=\"Java File Mismatch Example Program Output\" \/><\/div>\n<h3>3. \u30b3\u30f3\u30d1\u30af\u30c8\u306a\u6570\u5024\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/h3>\n<pre class=\"post-pre\"><code>import java.text.NumberFormat;\r\nimport java.util.Locale;\r\n\r\npublic class CompactNumberFormatting {\r\n\r\n\r\n    public static void main(String[] args)\r\n    {\r\n        System.out.println(\"Compact Formatting is:\");\r\n        NumberFormat upvotes = NumberFormat\r\n                .getCompactNumberInstance(new Locale(\"en\", \"US\"), NumberFormat.Style.SHORT);\r\n        upvotes.setMaximumFractionDigits(1);\r\n\r\n        System.out.println(upvotes.format(2592) + \" upvotes\");\r\n\r\n\r\n        NumberFormat upvotes2 = NumberFormat\r\n                .getCompactNumberInstance(new Locale(\"en\", \"US\"), NumberFormat.Style.LONG);\r\n        upvotes2.setMaximumFractionDigits(2);\r\n        System.out.println(upvotes2.format(2011) + \" upvotes\");\r\n    }\r\n\r\n\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564965edaa94e2bdf7bf9e9\/45-0.png\" alt=\"Java Compact Number Formatting Program Output\" \/><\/div>\n<h3>4. \u30c6\u30a3\u30fc\u3092\u96c6\u3081\u308b\u4eba\u3005 (T\u012b o atsumeru hitobito)<\/h3>\n<p>Teeing Collector\u306f\u3001Streams API\u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u30b3\u30ec\u30af\u30bf\u30fc\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3059\u3002\u3053\u306e\u30b3\u30ec\u30af\u30bf\u30fc\u306f3\u3064\u306e\u5f15\u6570\u3092\u6301\u3061\u307e\u3059\u22122\u3064\u306e\u30b3\u30ec\u30af\u30bf\u30fc\u30681\u3064\u306e\u30d0\u30a4\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3059\u3079\u3066\u306e\u5165\u529b\u5024\u304c\u5404\u30b3\u30ec\u30af\u30bf\u30fc\u306b\u6e21\u3055\u308c\u3001\u305d\u306e\u7d50\u679c\u304c\u30d0\u30a4\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>double mean = Stream.of(1, 2, 3, 4, 5)\r\n                .collect(Collectors.teeing(\r\n                        summingDouble(i -&gt; i),\r\n                        counting(),\r\n                        (sum, n) -&gt; sum \/ n));\r\n\r\nSystem.out.println(mean);\r\n<\/code><\/pre>\n<p>\u51fa\u529b\u306f3.0\u3067\u3059\u3002<\/p>\n<h3>\uff15\uff0eJava\u306e\u6587\u5b57\u5217\u306e\u65b0\u3057\u3044\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>Java 12\u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u30444\u3064\u306e\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>indent(int n)<\/li>\n<li>transform(Function f)<\/li>\n<li>Optional describeConstable()<\/li>\n<li>String resolveConstantDesc\u200b(MethodHandles.Lookup lookup)<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u5f53\u793e\u306eJava 12\u306eString\u30e1\u30bd\u30c3\u30c9\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>6. JEP 334: JVM Constants API<br \/>\n6. JEP 334\uff1aJVM\u5b9a\u6570API<\/h3>\n<p>\u3053\u306eJEP\u3067\u306f\u3001\u65b0\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8java.lang.constant\u304c\u5c0e\u5165\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5b9a\u6570\u30d7\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u306a\u3044\u958b\u767a\u8005\u306b\u306f\u3042\u307e\u308a\u5f79\u306b\u7acb\u3061\u307e\u305b\u3093\u3002<\/p>\n<h3>7. JEP 305: instanceof\u306b\u5bfe\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\uff08\u30d7\u30ec\u30d3\u30e5\u30fc\uff09<\/h3>\n<p>\u3082\u3046\u4e00\u3064\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u8a00\u8a9e\u306e\u6a5f\u80fd\uff01\u578b\u3092\u5225\u306e\u578b\u306b\u5909\u63db\u3059\u308b\u5f93\u6765\u306e\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>if (obj instanceof String) {\r\n    String s = (String) obj;\r\n    \/\/ use s in your code from here\r\n}\r\n<\/code><\/pre>\n<p>\u65b0\u3057\u3044\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>if (obj instanceof String s) {\r\n    \/\/ can use s directly here\r\n} \r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u4e0d\u5fc5\u8981\u306a\u30bf\u30a4\u30d7\u30ad\u30e3\u30b9\u30c8\u304c\u7701\u3051\u307e\u3059\u3002 (Kore ni yotte, fuy\u014dna taipu kyasuto ga habukemasu.)<\/p>\n<p>JDK 12\u304b\u3089\u3001\u751f\u306e\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u306f\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Java 12\u306e\u7279\u5fb4\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3064\u3044\u306b\u3001\uff16\u30f6\u6708\u306e\u30ea\u30ea\u30fc\u30b9\u30b5\u30a4\u30af\u30eb\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001JDK 12\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u524d\u56de\u306eJava LTS\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f311\u306e\u5f8c\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002\u4ee5\u524d\u306b\u3001\u79c1\u305f\u3061\u306fJava 11\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8a71\u3057\u5408 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-689","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java 12 \u306e\u7279\u5fb4 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\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.silicloud.com\/ja\/blog\/java-12-\u306e\u7279\u5fb4\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java 12 \u306e\u7279\u5fb4\" \/>\n<meta property=\"og:description\" content=\"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-\u306e\u7279\u5fb4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-25T09:20:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:40:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564965edaa94e2bdf7bf9e9\/32-0.png\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"17\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/\",\"name\":\"Java 12 \u306e\u7279\u5fb4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-04-25T09:20:59+00:00\",\"dateModified\":\"2025-07-31T16:40:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java 12 \u306e\u7279\u5fb4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java 12 \u306e\u7279\u5fb4 - Blog - Silicon Cloud","description":"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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.silicloud.com\/ja\/blog\/java-12-\u306e\u7279\u5fb4\/","og_locale":"ja_JP","og_type":"article","og_title":"Java 12 \u306e\u7279\u5fb4","og_description":"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-\u306e\u7279\u5fb4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-25T09:20:59+00:00","article_modified_time":"2025-07-31T16:40:53+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564965edaa94e2bdf7bf9e9\/32-0.png"}],"author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/","name":"Java 12 \u306e\u7279\u5fb4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-04-25T09:20:59+00:00","dateModified":"2025-07-31T16:40:53+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Java 12 \u306e\u7279\u5fb4\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java 12 \u306e\u7279\u5fb4"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-12-%e3%81%ae%e7%89%b9%e5%be%b4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":43775,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions\/43775"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}