{"id":583,"date":"2023-06-05T04:25:32","date_gmt":"2022-09-11T04:32:40","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/"},"modified":"2025-08-01T00:48:03","modified_gmt":"2025-07-31T15:48:03","slug":"java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/","title":{"rendered":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf"},"content":{"rendered":"<p>Java\u3067\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u304c\u30012\u3064\u306e\u70b9\u3067\u7570\u306a\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u30af\u30e9\u30b9\u540d\u3068\u540c\u3058\u540d\u524d\u3067\u3042\u308a\u3001\u623b\u308a\u5024\u306e\u578b\u3092\u6301\u3061\u307e\u305b\u3093\u3002\u6642\u306b\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306e\u7279\u5225\u306a\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u3082\u8a00\u53ca\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h2>\n<p>\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u65b0\u3057\u3044\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u30af\u30e9\u30b9\u306b\u306e\u307f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u305d\u308c\u306fJava\u30e9\u30f3\u30bf\u30a4\u30e0\u306b\u3088\u3063\u3066\u6697\u9ed9\u7684\u306b\u884c\u308f\u308c\u3001\u305d\u308c\u306b\u623b\u308a\u5024\u306e\u578b\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u623b\u308a\u5024\u306e\u578b\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u305d\u308c\u306f\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u304cJava\u30e9\u30f3\u30bf\u30a4\u30e0\u304c\u901a\u5e38\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u533a\u5225\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306aEmployee\u30af\u30e9\u30b9\u306e\u30b3\u30fc\u30c9\u304c\u3042\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>public Employee() {\r\n\tSystem.out.println(\"Employee Constructor\");\r\n}\r\n\r\n\r\npublic Employee Employee() {\r\n\tSystem.out.println(\"Employee Method\");\r\n\treturn new Employee();\r\n}\r\n<\/code><\/pre>\n<p>\u6700\u521d\u306e\u3082\u306e\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u3001\u8fd4\u308a\u5024\u306e\u578b\u3082\u8fd4\u308a\u5024\u306e\u6587\u3082\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u30022\u756a\u76ee\u306e\u3082\u306e\u306f\u901a\u5e38\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u518d\u3073\u6700\u521d\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u305d\u306e\u5f8cEmployee\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u540d\u3068\u540c\u3058\u30e1\u30bd\u30c3\u30c9\u540d\u306b\u3057\u306a\u3044\u65b9\u304c\u6df7\u4e71\u3092\u62db\u304b\u306a\u3044\u306e\u3067\u3001\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u7a2e\u985e<\/h2>\n<p>Java\u306b\u306f3\u7a2e\u985e\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5f15\u6570\u306a\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u4ed8\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc<\/ol>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u7a2e\u985e\u3068\u4f8b\u984c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Java\u306b\u304a\u3051\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h3>\n<p>\u30af\u30e9\u30b9\u30b3\u30fc\u30c9\u3067\u5e38\u306b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u63d0\u4f9b\u3057\u306a\u3044\u5834\u5408\u3001Java\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5b9f\u88c5\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3057\u306a\u3044\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u4f7f\u7528\u3055\u308c\u308b\u5358\u7d14\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Data {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tData d = new Data();\r\n\t}\r\n}\r\n<\/code><\/pre>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u5f79\u5272\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u521d\u671f\u5316\u3057\u3066\u547c\u3073\u51fa\u3057\u5143\u306e\u30b3\u30fc\u30c9\u306b\u8fd4\u3059\u3053\u3068\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u5e38\u306b\u5f15\u6570\u306a\u3057\u3067\u3042\u308a\u3001\u65e2\u5b58\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306e\u307f\u3001Java\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u30b2\u30c3\u30bf\u30fc\u30bb\u30c3\u30bf\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u901a\u3058\u3066\u30a2\u30af\u30bb\u30b9\u304a\u3088\u3073\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u81ea\u4f53\u3067\u5341\u5206\u3067\u3059\u3002<\/ol>\n<h3>\u5f15\u6570\u306e\u306a\u3044\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h3>\n<p>\u5f15\u6570\u306a\u3057\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001no-args\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308a\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u78ba\u8a8d\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u78ba\u8a8d\u3001\u30ed\u30b0\u306e\u8a18\u9332\u306a\u3069\u3001\u4e8b\u524d\u306e\u521d\u671f\u5316\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3067\u306f\u3001Java\u306b\u304a\u3051\u308bno-args\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u7c21\u5358\u306b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Data {\r\n        \/\/no-args constructor\r\n\tpublic Data() {\r\n\t\tSystem.out.println(\"No-Args Constructor\");\r\n\t}\r\n\tpublic static void main(String[] args) {\r\n\t\tData d = new Data();\r\n\t}\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648eb5daa94e2bdf7bd48d\/16-0.png\" alt=\"no args constructor in java\" \/><\/div>\n<h3>\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3055\u308c\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h3>\n<p>\u5f15\u6570\u3092\u6301\u3064\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u5316\u3055\u308c\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3068\u547c\u3070\u308c\u307e\u3059\u3002Java\u306b\u304a\u3051\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u5316\u3055\u308c\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Data {\r\n\r\n\tprivate String name;\r\n\r\n\tpublic Data(String n) {\r\n\t\tSystem.out.println(\"Parameterized Constructor\");\r\n\t\tthis.name = n;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tData d = new Data(\"Java\");\r\n\t\tSystem.out.println(d.getName());\r\n\t}\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\/65648eb5daa94e2bdf7bd48d\/20-0.png\" alt=\"java class constructor with parameters\" \/><\/div>\n<h2>Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9<\/h2>\n<p>\u8907\u6570\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u3042\u308b\u5834\u5408\u3001\u305d\u308c\u306fJava\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3067\u3059\u3002Java\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Data {\r\n\r\n\tprivate String name;\r\n\tprivate int id;\r\n\r\n\t\/\/no-args constructor\r\n\tpublic Data() {\r\n\t\tthis.name = \"Default Name\";\r\n\t}\r\n\t\/\/one parameter constructor\r\n\tpublic Data(String n) {\r\n\t\tthis.name = n;\r\n\t}\r\n\t\/\/two parameter constructor\r\n\tpublic Data(String n, int i) {\r\n\t\tthis.name = n;\r\n\t\tthis.id = i;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic int getId() {\r\n\t\treturn id;\r\n\t}\r\n\r\n\t@Override\r\n\tpublic String toString() {\r\n\t\treturn \"ID=\"+id+\", Name=\"+name;\r\n\t}\r\n\tpublic static void main(String[] args) {\r\n\t\tData d = new Data();\r\n\t\tSystem.out.println(d);\r\n\t\t\r\n\t\td = new Data(\"Java\");\r\n\t\tSystem.out.println(d);\r\n\t\t\r\n\t\td = new Data(\"Pankaj\", 25);\r\n\t\tSystem.out.println(d);\r\n\t\t\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<h2>Java\u306b\u304a\u3051\u308b\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h2>\n<p>\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3067\u306f\u62bd\u8c61\u3001\u6700\u7d42\u3001\u9759\u7684\u3001\u304a\u3088\u3073\u540c\u671f\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u30a2\u30af\u30bb\u30b9\u4fee\u98fe\u5b50\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002public\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a2\u30af\u30bb\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u3059\u308b\u5229\u70b9\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\uff1f\u305d\u306e\u5834\u5408\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u306f\u305d\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3067\u306f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u3059\u308b\u306e\u306f\u3001\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3057\u305f\u3044\u5834\u5408\u3067\u3059\u3002Java\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3092\u81ea\u52d5\u7684\u306b\u63d0\u4f9b\u3059\u308b\u305f\u3081\u3001\u660e\u793a\u7684\u306b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3092\u4f5c\u6210\u3057\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u4fdd\u6301\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30af\u30e9\u30b9\u306f\u3001\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306e\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002Data\u30af\u30e9\u30b9\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306e\u4f8b\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>\/\/ private constructor\r\nprivate Data() {\r\n\t\/\/empty constructor for singleton pattern implementation\r\n\t\/\/can have code to be used inside the getInstance() method of class\r\n}\r\n<\/code><\/pre>\n<h2>Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u30c1\u30a7\u30a4\u30cb\u30f3\u30b0<\/h2>\n<p>\u540c\u3058\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u5225\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u5834\u5408\u3001\u305d\u308c\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30c1\u30a7\u30a4\u30f3\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u30af\u30e9\u30b9\u306e\u5225\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u306f\u3001this\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6642\u306b\u306f\u30af\u30e9\u30b9\u5909\u6570\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u306a\u304a\u3001\u5225\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u547c\u3073\u51fa\u3057\u306f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u5185\u306e\u6700\u521d\u306e\u6587\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u518d\u5e30\u547c\u3073\u51fa\u3057\u306f\u884c\u3063\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002Java\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30c1\u30a7\u30a4\u30f3\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Employee {\r\n\r\n\tprivate int id;\r\n\tprivate String name;\r\n\t\r\n\tpublic Employee() {\r\n\t\tthis(\"John Doe\", 999);\r\n\t\tSystem.out.println(\"Default Employee Created\");\r\n\t}\r\n\t\r\n\tpublic Employee(int i) {\r\n\t\tthis(\"John Doe\", i);\r\n\t\tSystem.out.println(\"Employee Created with Default Name\");\r\n\t}\r\n\tpublic Employee(String s, int i) {\r\n\t\tthis.id = i;\r\n\t\tthis.name = s;\r\n\t\tSystem.out.println(\"Employee Created\");\r\n\t}\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\tEmployee emp = new Employee();\r\n\t\tSystem.out.println(emp);\r\n\t\tEmployee emp1 = new Employee(10);\r\n\t\tSystem.out.println(emp1);\r\n\t\tEmployee emp2 = new Employee(\"Pankaj\", 20);\r\n\t\tSystem.out.println(emp2);\r\n\t}\r\n\r\n\t@Override\r\n\tpublic String toString() {\r\n\t\treturn \"ID = \"+id+\", Name = \"+name;\r\n\t}\r\n\tpublic int getId() {\r\n\t\treturn id;\r\n\t}\r\n\r\n\tpublic void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u79c1\u306ftoString()\u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3001Employee\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3059\u308b\u6709\u7528\u306a\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u4e0a\u8a18\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u51fa\u529b\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Employee Created\r\nDefault Employee Created\r\nID = 999, Name = John Doe\r\nEmployee Created\r\nEmployee Created with Default Name\r\nID = 10, Name = John Doe\r\nEmployee Created\r\nID = 20, Name = Pankaj\r\n<\/code><\/pre>\n<p>\u5225\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304c\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u30c1\u30a7\u30fc\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Java\u306e\u30b9\u30fc\u30d1\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/h2>\n<p>\u6642\u306b\u306f\u3001\u30af\u30e9\u30b9\u306f\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3001\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u3001super\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u5834\u5408\u3001\u5b50\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5185\u3067\u6700\u521d\u306e\u6587\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u5b50\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308b\u969b\u306b\u306f\u3001Java\u306f\u307e\u305a\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u521d\u671f\u5316\u3057\u3001\u6b21\u306b\u5b50\u30af\u30e9\u30b9\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u660e\u793a\u7684\u306b\u547c\u3073\u51fa\u3055\u308c\u306a\u3044\u5834\u5408\u3001Java\u30e9\u30f3\u30bf\u30a4\u30e0\u306b\u3088\u3063\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u307e\u305f\u306f\u5f15\u6570\u306a\u3057\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6982\u5ff5\u3092\u3044\u304f\u3064\u304b\u306e\u4f8b\u984c\u3092\u901a\u3057\u3066\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a2\u3064\u306e\u30af\u30e9\u30b9\u304c\u3042\u308b\u3068\u4eee\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Person {\r\n\r\n\tprivate int age;\r\n\r\n\tpublic Person() {\r\n\t\tSystem.out.println(\"Person Created\");\r\n\t}\r\n\r\n\tpublic Person(int i) {\r\n\t\tthis.age = i;\r\n\t\tSystem.out.println(\"Person Created with Age = \" + i);\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\npublic class Student extends Person {\r\n\r\n\tprivate String name;\r\n\r\n\tpublic Student() {\r\n\t\tSystem.out.println(\"Student Created\");\r\n\t}\r\n\r\n\tpublic Student(int i, String n) {\r\n\t\tsuper(i); \/\/ super class constructor called\r\n\t\tthis.name = n;\r\n\t\tSystem.out.println(\"Student Created with name = \" + n);\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306bStudent\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"post-pre\"><code>Student st = new Student();\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u4f55\u306b\u306a\u308a\u307e\u3059\u304b\uff1f\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>Person Created\r\nStudent Created\r\n<\/code><\/pre>\n<p>\u6700\u521d\u306e\u6587\u306b\u30b9\u30fc\u30d1\u30fc\u30b3\u30fc\u30eb\u304c\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u547c\u3073\u51fa\u3057\u306fStudent\u30af\u30e9\u30b9\u306e\u5f15\u6570\u306a\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u79fb\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5f15\u6570\u306a\u3057\u307e\u305f\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306ePerson\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u3088\u3063\u3066\u3001\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3057Student\u30af\u30e9\u30b9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001Student st = new Student(34, &#8220;Pankaj&#8221;);\u3001\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Person Created with Age = 34\r\nStudent Created with name = Pankaj\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u660e\u793a\u7684\u306b\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u305f\u3081\u3001Java\u306f\u81ea\u5206\u305f\u3061\u306e\u5074\u304b\u3089\u4f59\u5206\u306a\u4f5c\u696d\u3092\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u51fa\u529b\u306f\u660e\u78ba\u3067\u3059\u3002<\/p>\n<h2>Java\u306e\u30b3\u30d4\u30fc\u30fb\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc<\/h2>\n<p>Java\u306e\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u540c\u3058\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6642\u306b\u306f\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30d4\u30fc\u304c\u5fc5\u8981\u3067\u3001\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30af\u30ed\u30fc\u30cb\u30f3\u30b0\u3092\u5b9f\u88c5\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30fc\u30d7\u30b3\u30d4\u30fc\u306e\u305f\u3081\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30b3\u30d4\u30fc\u7528\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u3002<\/ol>\n<p>\u3067\u306f\u3001\u30b3\u30d4\u30fc\uff08\u8907\u88fd\uff09\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u3069\u306e\u3088\u3046\u306b\u66f8\u304f\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306aFruits\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u3042\u308b\u3068\u4eee\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class Fruits {\r\n\r\n\tprivate List&lt;String&gt; fruitsList;\r\n\r\n\tpublic List&lt;String&gt; getFruitsList() {\r\n\t\treturn fruitsList;\r\n\t}\r\n\r\n\tpublic void setFruitsList(List&lt;String&gt; fruitsList) {\r\n\t\tthis.fruitsList = fruitsList;\r\n\t}\r\n\r\n\tpublic Fruits(List&lt;String&gt; fl) {\r\n\t\tthis.fruitsList = fl;\r\n\t}\r\n\t\r\n\tpublic Fruits(Fruits fr) {\r\n\t\tList&lt;String&gt; fl = new ArrayList&lt;&gt;();\r\n\t\tfor (String f : fr.getFruitsList()) {\r\n\t\t\tfl.add(f);\r\n\t\t}\r\n\t\tthis.fruitsList = fl;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>Fruits\u30af\u30e9\u30b9\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30d4\u30fc\u3092\u8fd4\u3059\u305f\u3081\u306b\u30c7\u30a3\u30fc\u30d7\u30b3\u30d4\u30fc\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4f7f\u7528\u3059\u308b\u65b9\u304c\u826f\u3044\u7406\u7531\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u3001\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.constructor;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class CopyConstructorTest {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tList&lt;String&gt; fl = new ArrayList&lt;&gt;();\r\n\t\tfl.add(\"Mango\");\r\n\t\tfl.add(\"Orange\");\r\n\r\n\t\tFruits fr = new Fruits(fl);\r\n\r\n\t\tSystem.out.println(fr.getFruitsList());\r\n\r\n\t\tFruits frCopy = fr;\r\n\t\tfrCopy.getFruitsList().add(\"Apple\");\r\n\r\n\t\tSystem.out.println(fr.getFruitsList());\r\n\r\n\t\tfrCopy = new Fruits(fr);\r\n\t\tfrCopy.getFruitsList().add(\"Banana\");\r\n\t\tSystem.out.println(fr.getFruitsList());\r\n\t\tSystem.out.println(frCopy.getFruitsList());\r\n\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[Mango, Orange]\r\n[Mango, Orange, Apple]\r\n[Mango, Orange, Apple]\r\n[Mango, Orange, Apple, Banana]\r\n<\/code><\/pre>\n<p>Java\u3067\u30b3\u30d4\u30fc\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u5143\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u305d\u306e\u30b3\u30d4\u30fc\u306f\u4e92\u3044\u306b\u95a2\u4fc2\u304c\u306a\u304f\u3001\u3069\u3061\u3089\u304b\u306e\u5909\u66f4\u304c\u4ed6\u65b9\u306b\u53cd\u6620\u3055\u308c\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304cJava\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u3059\u3079\u3066\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u3067\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u304c\u30012\u3064\u306e\u70b9\u3067\u7570\u306a\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u30af\u30e9\u30b9\u540d\u3068\u540c\u3058\u540d\u524d\u3067\u3042\u308a\u3001\u623b\u308a\u5024\u306e\u578b\u3092\u6301\u3061\u307e\u305b\u3093\u3002\u6642\u306b\u306f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-583","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\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\" \/>\n<meta property=\"og:description\" content=\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-11T04:32:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T15:48:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648eb5daa94e2bdf7bd48d\/16-0.png\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\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=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"20\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%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/\",\"name\":\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-09-11T04:32:40+00:00\",\"dateModified\":\"2025-07-31T15:48:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\"}]},{\"@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\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf - Blog - Silicon Cloud","description":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf","og_description":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-09-11T04:32:40+00:00","article_modified_time":"2025-07-31T15:48:03+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648eb5daa94e2bdf7bd48d\/16-0.png"}],"author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"20\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/","name":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-09-11T04:32:40+00:00","dateModified":"2025-07-31T15:48:03+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\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%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java\u306b\u304a\u3051\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf"}]},{"@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\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%82%b9%e3%83%88%e3%83%a9%e3%82%af%e3%82%bf\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/583","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":42444,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions\/42444"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}