{"id":244,"date":"2022-12-28T11:57:15","date_gmt":"2022-10-30T05:46:50","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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/"},"modified":"2025-07-31T21:56:50","modified_gmt":"2025-07-31T12:56:50","slug":"java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3","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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/","title":{"rendered":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3"},"content":{"rendered":"<p>\u8457\u8005\u306f\u300cWrite for Donations\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u30d5\u30ea\u30fc\u30fb\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30fb\u30d5\u30a1\u30f3\u30c9\u3078\u306e\u5bc4\u4ed8\u3092\u53d7\u3051\u308b\u305f\u3081\u306b\u9078\u3070\u308c\u307e\u3057\u305f\u3002<\/p>\n<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>Java\u306f\u9759\u7684\u578b\u4ed8\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001\u305d\u306e\u30c7\u30fc\u30bf\u578b\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u578b\u306f\u3001\u5909\u6570\u304c\u4fdd\u6301\u3059\u308b\u60c5\u5831\u306e\u7a2e\u985e\u3067\u3059\u3002\u3053\u308c\u306f\u3001PHP\u306a\u3069\u306e\u52d5\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3068\u306f\u5bfe\u7167\u7684\u3067\u3059\u3002\u52d5\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3067\u306f\u3001\u5909\u6570\u306e\u30c7\u30fc\u30bf\u578b\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u4e00\u898b\u3059\u308b\u3068\u697d\u306b\u611f\u3058\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3092\u77e5\u3063\u3066\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306f\u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u5404\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306f\u7279\u5b9a\u306e\u30ea\u30bd\u30fc\u30b9\u8981\u4ef6\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u307e\u305f\u3001\u3042\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u3001\u9593\u9055\u3063\u3066\u5225\u306e\u7a2e\u985e\u3092\u683c\u7d0d\u3057\u3088\u3046\u3068\u3059\u308b\u5834\u5408\u3001\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3067\u306f\u3001\u30c6\u30b9\u30c8\u306e\u524d\u306b\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Java\u306b\u306f\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u578b\u3068\u53c2\u7167\u578b\uff08\u975e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3082\u3057\u304f\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\u3068\u3082\u547c\u3070\u308c\u308b\uff09\u306e2\u3064\u306e\u30c7\u30fc\u30bf\u578b\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u5909\u6570\u3092\u4f7f\u7528\u3057\u3001Java\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u578b\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002\u3053\u308c\u306f\u5168\u3066\u306e\u30c7\u30fc\u30bf\u578b\u306e\u5fb9\u5e95\u7684\u306a\u6982\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ac\u30a4\u30c9\u306fJava\u3067\u5229\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u6163\u308c\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>An environment in which you can execute Java programs to follow along with the examples. To set this up on your local machine, you will need the following:Java (version 11 or above) installed on your machine, with the compiler provided by the Java Development Kit (JDK). For Ubuntu and Debian, follow the steps for Option 1 in our tutorial, How To Install Java with Apt on Ubuntu 22.04. For other operating systems, including Mac and Windows, see the download options for Java installation.<br \/>\nTo compile and run the code examples, this tutorial uses Java Shell, a Read-Evaluate-Print Loop (REPL) run from the command line. To get started with JShell, check out the Introduction to JShell guide.<\/li>\n<li>Familiarity with Java and object-oriented programming, which you can find in our tutorial, How To Write Your First Program in Java.<\/li>\n<\/ul>\n<h2>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b<\/h2>\n<p>Java\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306f\u3001Java\u3067\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u6570\u5024\u3084\u6587\u5b57\u306a\u3069\u306e\u751f\u306e\u5024\u3092\u8868\u3057\u307e\u3059\u3002\u6700\u3082\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u578b\u306f\u3001int\uff08\u6574\u6570\uff09\u3001boolean\uff08\u30d6\u30fc\u30eb\u5024\uff09\u3001char\uff08\u6587\u5b57\uff09\u3067\u3059\u3002\u305d\u306e\u4ed6\u306e\u30c7\u30fc\u30bf\u578b\u306f\u516c\u5f0f\u306eJava\u30c7\u30fc\u30bf\u578b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6574\u6570<\/h3>\n<p>\u6574\u6570\u306f\u3001\u8ca0\u306e\u6570\u3068\u6b63\u306e\u6574\u6570\u306e\u4e21\u65b9\u3092\u6307\u3057\u307e\u3059\u3002Java\u3067\u306f\u3001\u305d\u308c\u3089\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306bint\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002int\u306f\u307b\u3068\u3093\u3069\u306e\u76ee\u7684\u306b\u304a\u3044\u3066\u5341\u5206\u306b\u5927\u304d\u306a\u6570\u3092\u53ce\u5bb9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a-2,147,483,648\u304b\u30892,147,483,647\u307e\u3067\u3002<\/p>\n<p>\u300cint\u306e\u4f7f\u7528\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><mark><span class=\"token keyword\">int<\/span><\/mark> theAnswer <span class=\"token operator\">=<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306f\u5e38\u306b\u5c0f\u6587\u5b57\uff08int\uff09\u3067\u59cb\u307e\u308a\u307e\u3059\u3002Java\u306e\u69cb\u6587\u30eb\u30fc\u30eb\u3067\u306f\u3001\u6700\u521d\u306b\u30c7\u30fc\u30bf\u578b\uff08int\uff09\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e\u5f8c\u306b\u5909\u6570\u306e\u540d\u524d\uff08theAnswer\uff09\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30a4\u30b3\u30fc\u30eb\u8a18\u53f7\uff08=\uff09\u3092\u4f7f\u7528\u3057\u3066\u5909\u6570\u306b\u502442\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u30bf\u30a4\u30d7\u306b\u95a2\u4fc2\u306a\u304f\u3001\u7279\u5225\u306a\u6587\u5b57\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306a\u304f\u5909\u6570\u3092\u76f4\u63a5\u6307\u5b9a\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306fJava\u304c\u5909\u6570\u3068\u3057\u3066\u8a8d\u8b58\u3067\u304d\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u5909\u6570\u300ctheAnswer\u300d\u3068\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u4ed6\u306e\u3059\u3079\u3066\u306e\u5909\u6570\u306e\u540d\u524d\u306f\u30ad\u30e3\u30e1\u30eb\u30b1\u30fc\u30b9\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306fJava\u306b\u304a\u3051\u308b\u53d7\u3051\u5165\u308c\u3089\u308c\u3066\u3044\u308b\u547d\u540d\u898f\u5247\u3067\u3059\u304c\u3001\u53b3\u5bc6\u306a\u8981\u4ef6\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<p>\u5909\u6570\u3092\u5ba3\u8a00\u3057\u305f\u5f8c\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u53c2\u7167\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">int<\/span> <mark>theAnswer<\/mark> <span class=\"token operator\">=<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"The answer to all questions is \"<\/span> <span class=\"token operator\">+<\/span> <mark>theAnswer<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u7b2c2\u884c\u76ee\u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8System.out\u306e\u7d44\u307f\u8fbc\u307f\u30e1\u30bd\u30c3\u30c9println\u3092\u4f7f\u7528\u3057\u3066\u3001theAnswer\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u5909\u6570\u304c\u671f\u5f85\u3069\u304a\u308a\u306b\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u308c\u304c\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u69d8\u5b50\u3092\u898b\u308b\u306b\u306f\u3001Java Shell\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002Java\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001jshell\u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">jshell<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u51fa\u529b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>| Welcome to JShell &#8212; Version 11.0.16 | For an introduction type: \/help intro jshell&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304b\u3089\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b8c\u4e86\u3057\u305f\u3089\u3001\/exit\u3068\u5165\u529b\u3057\u3066jshell\u3092\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>int\u578b\u3092\u5ba3\u8a00\u3057\u3066\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u884c\u3092jshell\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int <mark>theAnswer<\/mark> <span class=\"token operator\">=<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;The answer to all questions is &#8220;<\/span> + <mark>theAnswer<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>theAnswer ==&gt; 42 The answer to all questions is 42<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306f\u3001int\u578b\u306e\u5909\u6570theAnswer\u304c\u9069\u5207\u306b42\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068(theAnswer ==&gt; 42)\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001theAnswer\u3092\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3057\u3066\u4f7f\u7528\u3057\u3001\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u671f\u5f85\u3055\u308c\u308b\u5909\u6570\u306e\u5024\u3092\u751f\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30d6\u30fc\u30eb\u5024<\/h3>\n<p>\u30d6\u30fc\u30ea\u30a2\u30f3\u5024\u306f\u771f\u307e\u305f\u306f\u507d\u3067\u3059\u3002Java\u3067\u306f\u3001boolean\u3092\u4f7f\u7528\u3057\u3066\u305d\u308c\u3089\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Java\u304c\u697d\u3057\u3044\u304b\u3069\u3046\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u30d6\u30fc\u30ea\u30a2\u30f3\u5909\u6570\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><mark><span class=\"token keyword\">boolean<\/span><\/mark> isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u5909\u6570isJavaFun\u3092true\u3068\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u5225\u306e\u771f\u507d\u5024\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306ffalse\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306bJava\u306f\u697d\u3057\u3044\u3067\u3059: true\u3068\u3044\u3046\u6587\u3092\u5370\u5237\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean <mark>isJavaFun<\/mark> <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Java is fun: &#8220;<\/span> + <mark>isJavaFun<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>jshell\u3067\u3053\u308c\u3089\u306e\u884c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002 (Jshell\u3067\u8d70\u3089\u305b\u305f\u3089\u4ee5\u4e0b\u306e\u7d50\u679c\u304c\u51fa\u307e\u3059\u3002)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun ==&gt; true Java is fun: true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>int\u306e\u4f8b\u3068\u540c\u69d8\u306b\u3001\u30e1\u30bd\u30c3\u30c9println\u306f\u30ab\u30c3\u30b3\u5185\u3067\u4e0e\u3048\u3089\u308c\u305f\u5f15\u6570\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u30d7\u30e9\u30b9\u8a18\u53f7\uff08+\uff09\u306f\u6587\u5b57\u5217\u300cJava is fun: \u300d\u3068\u5909\u6570isJavaFun\u3092\u9023\u7d50\u307e\u305f\u306f\u7d50\u5408\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u5b9f\u969b\u306b\u306f1\u3064\u306e\u5f15\u6570\u3001\u3059\u306a\u308f\u3061\u6587\u5b57\u5217\u300cJava is fun: true\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc<\/h3>\n<p>\u5358\u4e00\u306e\u82f1\u6570\u5b57\u306e\u6587\u5b57\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u306f\u3001char\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n<pre class=\"post-pre\"><code><mark><span class=\"token keyword\">char<\/span><\/mark> firstLetter <span class=\"token operator\">=<\/span> <span class=\"token char\">'a'<\/span><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>&#8216;a&#8217;\u3068\u3044\u3046\u6587\u5b57\u304c\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u56f2\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u306f\u6587\u5b57\u306e\u5024\u306b\u306e\u307f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u306f\u5f8c\u3067\u5b66\u3076\u3088\u3046\u306b\u3001\u6587\u5b57\u5217\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>char\u306f\u7279\u306b\u6709\u7528\u306a\u30bf\u30a4\u30d7\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u5358\u4e00\u306e\u6587\u5b57\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u5909\u6570\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u306f\u3042\u307e\u308a\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001char\u306fString\u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u306e\u30af\u30e9\u30b9\u306e\u305f\u3081\u306e\u57fa\u672c\u8981\u7d20\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001char\u306f\u57fa\u672c\u7684\u306bchar\u5024\u306e\u96c6\u307e\u308a\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3054\u89a7\u3044\u305f\u3060\u3044\u305f\u901a\u308a\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u5909\u6570\u306e\u5ba3\u8a00\u3068\u4f7f\u7528\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u6574\u6570\u306e\u3088\u3046\u306a\u5358\u7d14\u306a\u5024\u3092\u8868\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u5024\u306f\u3059\u3050\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u306a\u3069\u306e\u8ffd\u52a0\u306e\u64cd\u4f5c\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<h2>\u53c2\u7167\u30bf\u30a4\u30d7<\/h2>\n<p>\u3053\u306e\u30b7\u30ea\u30fc\u30ba\u306e\u6700\u521d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3042\u308b\u300cJava\u3067\u6700\u521d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u65b9\u6cd5\u300d\u3067\u306f\u3001Java\u30b3\u30fc\u30c9\u306f\u30af\u30e9\u30b9\u306b\u6574\u7406\u3055\u308c\u3001\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u3053\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5909\u6570\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u3068\u3001\u305d\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u793a\u3059\u304b\u53c2\u7167\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5834\u5408\u3001\u5909\u6570\u306f\u53c2\u7167\u578b\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5909\u6570\u306f\u975e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u304c\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u5909\u6570\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u793a\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u9ad8\u5ea6\u306a\u5c5e\u6027\u3092\u6301\u3061\u3001\u30e1\u30bd\u30c3\u30c9\u304c\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u305f\u6642\u306b\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u975e\u5e38\u306b\u5f37\u529b\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5909\u6570\u304c\u6307\u3057\u3066\u3044\u306a\u3044\u9650\u308a\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u5b9f\u8cea\u7684\u306b\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u53c2\u7167\u578b\u5909\u6570\u306fJava\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5168\u4f53\u306b\u3068\u3063\u3066\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30bf\u30a4\u30d7\u306f\u30af\u30e9\u30b9\u304b\u3089\u4f5c\u6210\u3055\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u307e\u3059\u3002\u6df7\u4e71\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30bf\u30a4\u30d7\u3068\u4f5c\u6210\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u540c\u3058\u30af\u30e9\u30b9\u3067\u3042\u308b\u3053\u3068\u3068\u3057\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u8907\u96d1\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u3053\u308c\u306f\u3081\u3063\u305f\u306b\u8d77\u3053\u308a\u307e\u305b\u3093\u3002Java\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u7279\u5b9a\u306e\u632f\u308b\u821e\u3044\u306b\u5bfe\u3059\u308b\u8981\u4ef6\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u8981\u4ef6\u306f1\u3064\u4ee5\u4e0a\u306e\u30af\u30e9\u30b9\u306b\u3088\u3063\u3066\u6e80\u305f\u3055\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8981\u4ef6\u3092\u6e80\u305f\u3059\u30af\u30e9\u30b9\u306f\u3001\u305d\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u8907\u96d1\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30bf\u30a4\u30d7\u306e\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5909\u6570\u304c\u5177\u4f53\u7684\u306a\u632f\u308b\u821e\u3044\u306e\u5b9f\u88c5\u306b\u7d50\u3073\u3064\u3051\u3089\u308c\u308b\u3053\u3068\u306a\u304f\u3001\u5909\u6570\u304c\u793a\u3059\u3079\u304d\u632f\u308b\u821e\u3044\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5909\u6570\u304c\u6307\u3059\u5b9f\u88c5\u3092\u7c21\u5358\u306b\u5909\u66f4\u3067\u304d\u308b\u305f\u3081\u3001\u5909\u6570\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306a\u304f\u5b9f\u88c5\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8907\u96d1\u306a\u6982\u5ff5\u306f\u3001\u7d99\u627f\u3068\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u306b\u3064\u3044\u3066\u306e\u3088\u308a\u9ad8\u5ea6\u306a\u30c8\u30d4\u30c3\u30af\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u79c1\u305f\u3061\u306eJava\u30b7\u30ea\u30fc\u30ba\u306e\u5225\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u69cb\u6210\u8981\u7d20\u306e\u6570\u306f\u5c11\u306a\u3044\u304c\u3001\u53c2\u7167\u578b\u306f\u5b9f\u8cea\u7684\u306b\u7121\u5236\u9650\u3067\u3042\u308b\u305f\u3081\u3001\u30af\u30e9\u30b9\uff08\u304a\u3088\u3073\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u306e\u6570\u306b\u306f\u5236\u9650\u304c\u306a\u304f\u3001\u305d\u308c\u305e\u308c\u306e\u30af\u30e9\u30b9\u304c\u53c2\u7167\u578b\u3092\u8868\u3059\u3002Java\u306b\u306f\u3001\u91cd\u8981\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u591a\u304f\u306e\u7d44\u307f\u8fbc\u307f\u30af\u30e9\u30b9\u304c\u3042\u308b\u3002\u6700\u3082\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u3082\u306e\u306f\u3001core java.lang\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u305d\u308c\u3089\u306e\u3046\u3061\u3044\u304f\u3064\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h3>String\u30af\u30e9\u30b9<\/h3>\n<p>String\u30af\u30e9\u30b9\u306f\u3001\u6587\u5b57\u5217\u3092\u69cb\u6210\u3059\u308b\u6587\u5b57\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u8868\u3057\u307e\u3059\u3002String\u3001\u307e\u305f\u306f\u4ed6\u306e\u53c2\u7167\u578b\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u969b\u306b\u306f\u3001\u307e\u305a\u305d\u306e\u578b\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e\u5f8c\u306b\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u7b49\u53f7\u3092\u4f7f\u3063\u3066\u5024\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u3053\u308c\u307e\u3067\u306f\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u540c\u69d8\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u53c2\u7167\u578b\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3059\u305f\u3081\u3001\u307e\u3060\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><mark><span class=\"token class-name\">String<\/span><\/mark> hello <span class=\"token operator\">=<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">String<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Hello\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u5909\u6570\u306e\u540d\u524d\u306fString\u578b\u306e\u53c2\u7167\u3067\u3059\u3002\u65b0\u3057\u3044String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u305d\u308c\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u65b0\u3057\u3044String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u30af\u30e9\u30b9\u306e\u540d\u524d\u3067\u3042\u308b\u300cString\u300d\u3068\u3068\u3082\u306b\u3001new\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u30af\u30e9\u30b9String\u306f\u5927\u6587\u5b57\u3067\u59cb\u307e\u308a\u307e\u3059\u3002\u6163\u4f8b\u3068\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u3001\u3064\u307e\u308a\u53c2\u7167\u578b\u306f\u5927\u6587\u5b57\u3067\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>\u5404\u30af\u30e9\u30b9\u306b\u306f\u3001\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u7279\u5225\u306a\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30e9\u30b9\u540d\u306e\u672b\u5c3e\u306b\u62ec\u5f27\uff08\uff08\uff09\uff09\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u5165\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001String\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u3057\u3066\u300cHello\u300d\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\u5909\u6570\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001println\u30e1\u30bd\u30c3\u30c9\u306bhello\u5909\u6570\u3092\u518d\u5ea6\u6e21\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\"><mark>String<\/mark> hello <span class=\"token operator\">=<\/span> new String<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Hello&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>hello<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30fc\u30c9\u3092jshell\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>hello ==&gt; &#8220;Hello&#8221; Hello<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u56de\u306f\u3001\u51fa\u529b\u7d50\u679c\u306b\u3088\u3063\u3066\u5909\u6570hello\u304cHello\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u540c\u3058Hello\u304c\u65b0\u3057\u3044\u884c\u306b\u51fa\u529b\u3055\u308c\u3001println()\u30e1\u30bd\u30c3\u30c9\u304c\u51e6\u7406\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9<\/h3>\n<p>\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b String \u53c2\u7167\u578b\u3067\u4f5c\u696d\u3057\u307e\u3057\u305f\u3002\u4ed6\u306e\u4eba\u6c17\u306e\u3042\u308b\u53c2\u7167\u578b\u306f\u3001\u3044\u308f\u3086\u308b\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u30e9\u30c3\u30d1\u30fc\u3067\u3059\u3002\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u3092\u5305\u3093\u3067\u4fdd\u6301\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u306e\u540d\u524d\u304c\u3042\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306b\u306f\u3001\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u304c\u5b58\u5728\u3057\u3001\u4ee5\u4e0b\u306b\u3044\u304f\u3064\u304b\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Integer: To wrap int values.<\/li>\n<li>Character: To wrap char values.<\/li>\n<li>Boolean: To wrap boolean values.<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u30e9\u30c3\u30d1\u30fc\u306f\u3001\u5358\u7d14\u306a\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306a\u5024\u3092\u5f37\u529b\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u305f\u3081\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30e9\u30c3\u30d1\u30fc\u306b\u306f\u3001\u305d\u308c\u304c\u8a2d\u8a08\u3055\u308c\u305f\u5024\u306b\u95a2\u9023\u3059\u308b\u4f7f\u7528\u6e96\u5099\u304c\u6574\u3063\u305f\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Integer\u3092\u63a2\u6c42\u3057\u307e\u3059\u3002\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u65b0\u3057\u3044\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4e00\u90e8\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001\u305d\u308c\u3089\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u7279\u6b8a\u306a\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u304c\u63d0\u4f9b\u3055\u308c\u3001\u3055\u3089\u306b\u5968\u52b1\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002Integer\u3082\u305d\u306e\u4e00\u3064\u3067\u3059\u3002Integer\u306e\u5834\u5408\u3001\u7279\u6b8a\u306a\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u306f\u4e3b\u306b\u30ea\u30bd\u30fc\u30b9\u306e\u6700\u9069\u5316\u306b\u95a2\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u3001\u4ed6\u306e\u5834\u5408\u3067\u306f\u8907\u96d1\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u7bc9\u3092\u7c21\u7d20\u5316\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001valueOf\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5024\u304c42\u306eInteger\u5909\u6570\u3067\u3042\u308btheAnswer\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\"><mark>Integer<\/mark> theAnswer <span class=\"token operator\">=<\/span> Integer.valueOf<span class=\"token punctuation\">(<\/span><span class=\"token number\">42<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>theAnswer<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>JShell\u3067\u306f\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>theAnswer ==&gt; 42 42<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Integer\u30e1\u30bd\u30c3\u30c9\u306evalueOf(42)\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001Java\u306b\u5bfe\u3057\u3066\u3053\u306e\u5024\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u6307\u793a\u3057\u307e\u3059\u3002Java\u306f\u88cf\u3067\u3001\u65e2\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u305d\u306e\u5024\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3082\u3057\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306ftheAnswer\u5909\u6570\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304ctheAnswer\u5909\u6570\u306e\u305f\u3081\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u591a\u304f\u306e\u7d44\u307f\u8fbc\u307f\u30af\u30e9\u30b9\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u305f\u3081\u306b\u305d\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u63a8\u5968\u3055\u308c\u308b\u304b\u3001\u3042\u308b\u3044\u306f\u5fc5\u9808\u3067\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002Integer\u306e\u5834\u5408\u3001new\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u975e\u63a8\u5968\u306e\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>String\u3068\u30e9\u30c3\u30d1\u30fc\u306b\u52a0\u3048\u3066\u3001java.lang\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6982\u8981\u306b\u306f\u4ed6\u306b\u3082\u4fbf\u5229\u306a\u7d44\u307f\u8fbc\u307f\u306e\u53c2\u7167\u578b\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u3088\u308a\u9ad8\u5ea6\u306a\u53c2\u7167\u578b\u3092\u5b8c\u5168\u306b\u7406\u89e3\u3059\u308b\u306b\u306f\u3001\u8ffd\u52a0\u306e\u8aac\u660e\u3084\u4e88\u5099\u77e5\u8b58\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u79c1\u305f\u3061\u306f\u6b21\u306eJava\u30b7\u30ea\u30fc\u30ba\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3044\u304f\u3064\u304b\u306e\u53c2\u7167\u578b\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6587\u5b57\u901a\u308a<\/h2>\n<p>\u30ea\u30c6\u30e9\u30eb\u306f\u3001\u30b3\u30fc\u30c9\u5185\u3067\u76f4\u63a5\u4f7f\u7528\u3067\u304d\u308b\u56fa\u5b9a\u5024\u3092\u8868\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u308c\u3089\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3084\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u578b\u306e\u4e21\u65b9\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3044\u304f\u3064\u304b\u306e\u7a2e\u985e\u306e\u30ea\u30c6\u30e9\u30eb\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5206\u985e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u30ea\u30c6\u30e9\u30eb<\/h3>\n<p>\u539f\u59cb\u578b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u65e2\u306b\u3044\u304f\u3064\u304b\u306e\u30ea\u30c6\u30e9\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u5404\u539f\u59cb\u578b\u306b\u306f\u3001\u4f8b\u3048\u3070\u79c1\u305f\u3061\u306e\u4f8b\u306e\u4e2d\u306e42\u3001&#8217;a&#8217;\u3001\u305d\u3057\u3066true\u306e\u3088\u3046\u306a\u30ea\u30c6\u30e9\u30eb\u304c\u3042\u308a\u307e\u3059\u300242\u306e\u3088\u3046\u306a\u6574\u6570\u306f\u6574\u6570\u306e\u30ea\u30c6\u30e9\u30eb\u3067\u3059\u3002\u540c\u69d8\u306b\u3001&#8217;a&#8217;\u306e\u3088\u3046\u306a\u6587\u5b57\u306f\u6587\u5b57\u306e\u30ea\u30c6\u30e9\u30eb\u3067\u3042\u308a\u3001true\u3068false\u306f\u30d6\u30fc\u30eb\u306e\u30ea\u30c6\u30e9\u30eb\u3067\u3059\u3002<\/p>\n<p>\u57fa\u672c\u578b\u306e\u30ea\u30c6\u30e9\u30eb\u306f\u3001\u53c2\u7167\u578b\u306e\u5024\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a4\u30f3\u30c6\u30b8\u30e3\u30fc\u578b\u306e\u30ea\u30c6\u30e9\u30eb\u306f\u3001\u30b3\u30fc\u30c9Integer.valueOf(42)\u3067\u30a4\u30f3\u30c6\u30b8\u30e3\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u306f\u7565\u8a18\u6cd5\u3082\u3042\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5024\u3092\u76f4\u63a5\u4ee3\u5165\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"token class-name\">Integer<\/span> theAnswer <span class=\"token operator\">=<\/span> <mark><span class=\"token number\">42<\/span><\/mark><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>42\u306f\u6574\u6570\u30ea\u30c6\u30e9\u30eb\u3067\u3042\u308a\u3001\u4ed6\u306e\u6574\u6570\u3068\u540c\u69d8\u306b\u3001\u8ffd\u52a0\u306e\u6587\u306a\u3057\u3067theAnswer\u5909\u6570\u306b\u76f4\u63a5\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4fbf\u5229\u306a\u306e\u3067\u3001\u3053\u306e\u3088\u3046\u306b\u6574\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306e\u306f\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u7701\u7565\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u3001Boolean\u306a\u3069\u306e\u4ed6\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u30ea\u30c6\u30e9\u30eb\u3084\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u53c2\u7167\u578b\u306b\u3082\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"token class-name\">Boolean<\/span> isFun <span class=\"token operator\">=<\/span> <mark><span class=\"token boolean\">true<\/span><\/mark><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u771f\uff08\u3057\u3093\uff09\u306f\u30ea\u30c6\u30e9\u30eb\u3067\u3042\u308a\u3001\u305d\u308c\u306fisFun\u3068\u3044\u3046\u578b\u304c\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5909\u6570\u306b\u76f4\u63a5\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u540c\u3058\u65b9\u6cd5\u3067\u507d\uff08\u304e\uff09\u306e\u30ea\u30c6\u30e9\u30eb\u3082\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb<\/h3>\n<p>String\u53c2\u7167\u578b\u306b\u306f\u7279\u5225\u306a\u30ea\u30c6\u30e9\u30eb\u3082\u5b58\u5728\u3057\u3001\u305d\u306e\u5024\u3092\u56f2\u3080\u4e8c\u91cd\u5f15\u7528\u7b26\u3067\u8a8d\u8b58\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u300c\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c\uff01\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"token class-name\">String<\/span> helloWorld <span class=\"token operator\">=<\/span> <mark><span class=\"token string\">\"Hello, World!\"<\/span><\/mark><span class=\"token punctuation\">;<\/span>\r\n<\/code><\/pre>\n<p>\u30ea\u30c6\u30e9\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u77ed\u304f\u3001\u305d\u306e\u305f\u3081\u591a\u304f\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u304c\u305d\u308c\u3092\u9078\u3073\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u53c2\u7167\u578b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u65e2\u306b\u884c\u3063\u305f\u3088\u3046\u306b\u3001\u65b0\u3057\u3044String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066String\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30cc\u30eb\u30ea\u30c6\u30e9\u30eb<\/h3>\n<p>\u3082\u3046\u4e00\u3064\u91cd\u8981\u306a\u30ea\u30c6\u30e9\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306fnull\u3067\u3001\u5024\u306e\u4e0d\u5728\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u975e\u5b58\u5728\u3092\u8868\u3057\u307e\u3059\u3002null\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u304fnull\u306b\u53c2\u7167\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u306b\u30dd\u30a4\u30f3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002null\u306f\u3059\u3079\u3066\u306e\u53c2\u7167\u30bf\u30a4\u30d7\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u3069\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30bf\u30a4\u30d7\u306b\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>null\u30ea\u30c6\u30e9\u30eb\u306b\u306f1\u3064\u306e\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\uff1a\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u9069\u5207\u306a\u975enull\u5024\u3092\u518d\u4ee3\u5165\u3059\u308b\u307e\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002null\u5024\u3092\u6301\u3064\u53c2\u7167\u578b\u5909\u6570\u3092\u4f7f\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String initiallyNullString <span class=\"token operator\">=<\/span> <mark>null<\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;The class name is: &#8220;<\/span> + initiallyNullString.getClass<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">))<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092jshell\u3067\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>initiallyNullString ==&gt; null | Exception java.lang.NullPointerException | at (#4:1)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3068Java\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001\u51fa\u529b\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u521d\u671f\u5024\u304cnull\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 initiallyNullString \u306b\u5bfe\u3057\u3066\u3001\u30af\u30e9\u30b9\u540d\u3092\u8fd4\u3059String\u30e1\u30bd\u30c3\u30c9getClass()\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001java.lang.NullPointerException\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u300d<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u3001java.lang.NullPointerException\u3092\u30a8\u30e9\u30fc\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u304c\u3001\u6280\u8853\u7684\u306b\u306f\u4f8b\u5916\u3067\u3059\u3002\u4f8b\u5916\u3068\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u306f\u3001Java\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u300cJava\u306b\u304a\u3051\u308b\u4f8b\u5916\u51e6\u7406\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001\u6700\u521d\u306bNull\u306e\u5024\u3092\u3082\u3046\u4e00\u5ea6\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String initiallyNullString <span class=\"token operator\">=<\/span> null<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\"><mark>initiallyNullString <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8220;not null any longer&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/mark><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;The class name is: &#8220;<\/span> + initiallyNullString.getClass<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">))<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u4fee\u6b63\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u306f\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>initiallyNullString ==&gt; null initiallyNullString ==&gt; &#8220;not null any longer&#8221; The class name is: class java.lang.String<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306f\u3001\u6700\u521d\u306fnull\u3067\u3042\u308binitiallyNullString\u304c\u3001\u305d\u306e\u5f8c\u300cnot null any longer\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u542b\u3080\u65b0\u3057\u3044String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308b\u69d8\u5b50\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u6b21\u306b\u3001\u751f\u6210\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066getClass()\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3068\u3001java.lang.String\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u3001String\u306f\u30af\u30e9\u30b9\u540d\u3067\u3042\u308a\u3001java.lang\u306f\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u6700\u5f8c\u306b\u3001\u300c\u30af\u30e9\u30b9\u540d\u306f: class java.lang.String\u300d\u3068\u3044\u3046\u3001\u5b8c\u5168\u3067\u610f\u5473\u306e\u3042\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>null\u5024\u5ba3\u8a00\u306f\u3001\u53e4\u3044\u30b3\u30fc\u30c9\u3067\u306f\u3088\u308a\u4e00\u822c\u7684\u3067\u3059\u3002\u5909\u6570\u3092\u6700\u521d\u306b\u4f5c\u6210\u3057\u3001\u5f8c\u3067\u5b9f\u969b\u306e\u5024\u3092\u5272\u308a\u5f53\u3066\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u901a\u5e38\u306f\u3001\u5f8c\u8005\u3092\u6c7a\u5b9a\u3059\u308b\u4e00\u5b9a\u306e\u8ad6\u7406\u3092\u7d4c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001Java\u30d0\u30fc\u30b8\u30e7\u30f38\u4ee5\u964d\u3067\u306f\u3001\u4ee5\u524d\u306bnull\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u306b\u3088\u308a\u9069\u3057\u305f\u65b0\u3057\u3044\u53c2\u7167\u578bOptional\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306e\u578b\u63a8\u8ad6<\/h2>\n<p>\u3053\u308c\u307e\u3067\u3001Java\u3067\u306f\u4e00\u822c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u7528\u3057\u3066\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001Java 10\u3067\u306f\u300c\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306e\u578b\u63a8\u8ad6\u300d\u3068\u547c\u3070\u308c\u308b\u65b0\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\u3001\u65b0\u3057\u3044\u5909\u6570\u306e\u524d\u306b\u30ad\u30fc\u30ef\u30fc\u30c9var\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001Java\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u6587\u8108\u304b\u3089\u30c7\u30fc\u30bf\u578b\u3092\u81ea\u52d5\u7684\u306b\u63a8\u8ad6\uff08\u3064\u307e\u308a\u3001\u81ea\u52d5\u7684\u306b\u4e88\u60f3\uff09\u3057\u307e\u3059\u3002\u578b\u63a8\u8ad6\u306f\u3001\u4ee5\u524d\u306b\u8aac\u660e\u3057\u305f\u5909\u6570\u306e\u5b9a\u7fa9\u306e\u5197\u9577\u6027\u3068\u306f\u5bfe\u7167\u7684\u3067\u3042\u308b\u305f\u3081\u3001\u8b70\u8ad6\u306e\u7684\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u6a5f\u80fd\u306e\u5229\u70b9\u3068\u6b20\u70b9\u306f\u8b70\u8ad6\u306e\u4f59\u5730\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4e8b\u5b9f\u3068\u3057\u3066\u3001C++\u306a\u3069\u306e\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3082\u578b\u63a8\u8ad6\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3069\u306e\u5834\u5408\u3067\u3082\u3001\u578b\u63a8\u8ad6\u306f\u30c7\u30fc\u30bf\u578b\u306e\u4f7f\u7528\u3092\u5b8c\u5168\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u306a\u305c\u306a\u3089\u3001\u578b\u63a8\u8ad6\u306f\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u3057\u304b\u9069\u7528\u3055\u308c\u306a\u3044\u305f\u3081\u3067\u3059\u3002var\u3092\u4f8b\u3068\u3057\u3066\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\"><mark>var<\/mark> hello <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8220;Hello&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>hello<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u901a\u5e38\u306e\u65b9\u6cd5\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3057\u3001\u671f\u5f85\u901a\u308a\u306b\u6a5f\u80fd\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001var\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5909\u6570hello\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Ouput\">Ouput<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>hello ==&gt; &#8220;Hello&#8221; Hello<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u306f\u3001Java\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u5177\u4f53\u7684\u306b\u306fJDK\uff09\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c10\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u6a5f\u80fd\u3057\u307e\u3059\u3002var\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u578b\u63a8\u8ad6\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u30de\u30b7\u30f3\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3055\u308c\u3001\u578b\u63a8\u8ad6\u3092\u542b\u3080\u3055\u307e\u3056\u307e\u306a\u6700\u9069\u5316\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u578b\u63a8\u8ad6\u3055\u308c\u305f\u5909\u6570\u306b\u9069\u5207\u306a\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u91cf\u304c\u5229\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306b\u5b9f\u884c\u3059\u308b\u30de\u30b7\u30f3\u30b3\u30fc\u30c9\u306f\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u578b\u3092\u624b\u52d5\u3067\u6307\u5b9a\u3057\u305f\u304b\u306e\u3088\u3046\u306b\u5b8c\u5168\u306b\u6700\u9069\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u5909\u6570\u304c\u30ed\u30fc\u30ab\u30eb\u3067\u3042\u308b\u305f\u3081\u3001var\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u6a5f\u80fd\u3057\u307e\u3059\u3002\u307e\u305f\u3001var\u30c7\u30fc\u30bf\u578b\u306f\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306f\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u3001\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u304c\u300c\u30ed\u30fc\u30ab\u30eb\u300d\u3068\u547c\u3070\u308c\u308b\u7406\u7531\u3067\u3059\u3002<\/p>\n<p>var\u304c\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u306e\u307f\u4f7f\u7528\u3067\u304d\u308b\u3053\u3068\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u6b21\u306e\u3088\u3046\u306bmain\u30e1\u30bd\u30c3\u30c9\u306e\u5916\u306b\u914d\u7f6e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">public class Hello <span class=\"token punctuation\">{<\/span><\/li>\n<li data-prefix=\"jshell&gt;\"><mark>var hello <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8220;Hello&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/mark><\/li>\n<li data-prefix=\"jshell&gt;\">public static void main<span class=\"token punctuation\">(<\/span>String<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">\/\/ example code<\/li>\n<li data-prefix=\"jshell&gt;\"><span class=\"token punctuation\">}<\/span><\/li>\n<li data-prefix=\"jshell&gt;\"><span class=\"token punctuation\">}<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0a\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>| Error: | &#8216;var&#8217; is not allowed here | var hello = &#8220;Hello&#8221;; | ^-^<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30e1\u30bd\u30c3\u30c9\u306e\u5916\u5074\u306b\u3042\u308b\u305f\u3081\u3001\u5909\u6570 var \u306f\u305d\u3053\u3067\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u975e\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u5bfe\u3057\u3066\u578b\u63a8\u8ad6\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002\u306a\u305c\u306a\u3089\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4fe1\u983c\u3057\u3066\u30c7\u30fc\u30bf\u578b\u3092\u691c\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u300cvar\u300d\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u96e3\u3057\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u5fc5\u9808\u3067\u306f\u306a\u304f\u3066\u3082\u3001\u304a\u305d\u3089\u304f\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002<\/p>\n<h2>\u4e88\u7d04\u8a9e<\/h2>\n<p>Java\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u969b\u306b\u306f\u3001\u3082\u3046\u4e00\u3064\u91cd\u8981\u306a\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u5909\u6570\u540d\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u4e88\u7d04\u8a9e\u304c\u5b58\u5728\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306bint\u578b\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3068\u3057\u3066new\u3068\u3044\u3046\u540d\u524d\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int <mark>new<\/mark> <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u3053\u306e\u4f8b\u3092\u8a66\u3059\u3068\u3001new\u306f\u4e88\u7d04\u8a9e\u3067\u3042\u308b\u305f\u3081\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>| Error: | &#8216;.class&#8217; expected | int new = 1; | ^ | Error: | &lt;identifier&gt; expected | int new = 1; | ^ | Error: | &#8216;(&#8216; or &#8216;[&#8216; expected | int new = 1; | ^ | Error: | unexpected type | required: value | found: class | int new = 1; | ^&#8211;^ | Error: | missing return statement | int new = 1; | ^&#8212;&#8212;&#8212;-^<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u65b0\u3057\u3044\u300d\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001Java\u306f\u3053\u306e\u4f4d\u7f6e\u3067\u305d\u308c\u3092\u671f\u5f85\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u524d\u306e\u51fa\u529b\u306e\u30a8\u30e9\u30fc\u30ea\u30b9\u30c8\u3067\u306f\u3001\u6700\u3082\u91cd\u8981\u306a\u90e8\u5206\u306f\u6700\u521d\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>| Error: | &#8216;.class&#8217; expected | int new = 1; | ^<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u300c.class\u300d\u306f\u3001new\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u969b\u306bJava\u304c\u30af\u30e9\u30b9\u304c\u7d9a\u304f\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u3001Java\u306f\u6587\u3092\u89e3\u91c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u3001\u305d\u306e\u5f8c\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u62bd\u8c61\uff08abstract\uff09\u3001\u7d99\u7d9a\uff08continue\uff09\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\uff08default\uff09\u3001for\u3001\u305d\u3057\u3066\u30d6\u30ec\u30a4\u30af\uff08break\uff09\u306a\u3069\u3001\u4ed6\u306e\u4e88\u7d04\u30ad\u30fc\u30ef\u30fc\u30c9\u3082Java\u3067\u306f\u7279\u5b9a\u306e\u610f\u5473\u3092\u6301\u3061\u3001\u5909\u6570\u540d\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4e88\u7d04\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u306fJava\u8a00\u8a9e\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u30da\u30fc\u30b8\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e88\u7d04\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u5168\u3066\u899a\u3048\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u4f7f\u3063\u3066\u554f\u984c\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Java\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u578b\u3068\u53c2\u7167\u30c7\u30fc\u30bf\u578b\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u8907\u96d1\u3067\u3059\u304c\u91cd\u8981\u306a\u30c8\u30d4\u30c3\u30af\u3067\u3059\u3002\u3058\u3063\u304f\u308a\u3068\u7df4\u7fd2\u3057\u3001\u4f8b\u3092\u4f55\u5ea6\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u578b\u3084\u5024\u3092\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u6210\u529f\u3057\u305f\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u306b\u306f\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u3068\u3057\u306a\u3044\u5834\u5408\u306b\u6ce8\u610f\u3092\u6255\u3044\u306a\u304c\u3089\u3001\u611f\u899a\u3092\u990a\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Java\u306b\u95a2\u3059\u308b\u8a73\u7d30\u60c5\u5831\u306f\u3001\u5f53\u793e\u306eJava\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b7\u30ea\u30fc\u30ba\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8457\u8005\u306f\u300cWrite for Donations\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u30d5\u30ea\u30fc\u30fb\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30fb\u30d5\u30a1\u30f3\u30c9\u3078\u306e\u5bc4\u4ed8\u3092\u53d7\u3051\u308b\u305f\u3081\u306b\u9078\u3070\u308c\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b Java\u306f\u9759\u7684\u578b\u4ed8\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-244","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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\/\" \/>\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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\" \/>\n<meta property=\"og:description\" content=\"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-30T05:46:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:56:50+00:00\" \/>\n<meta name=\"author\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\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=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"30\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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/\",\"name\":\"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-10-30T05:46:50+00:00\",\"dateModified\":\"2025-07-31T12:56:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\"},\"description\":\"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\"}]},{\"@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\/601389077b7f4e4ad6115428e3b73bff\",\"name\":\"\u7dbe\u4e43, \u4e00\u5e0c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"caption\":\"\u7dbe\u4e43, \u4e00\u5e0c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/\"},{\"@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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3 - Blog - Silicon Cloud","description":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3","og_description":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-30T05:46:50+00:00","article_modified_time":"2025-07-31T12:56:50+00:00","author":"\u7dbe\u4e43, \u4e00\u5e0c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7dbe\u4e43, \u4e00\u5e0c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"30\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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/","name":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-10-30T05:46:50+00:00","dateModified":"2025-07-31T12:56:50+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff"},"description":"Java\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#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\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3"}]},{"@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\/601389077b7f4e4ad6115428e3b73bff","name":"\u7dbe\u4e43, \u4e00\u5e0c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","caption":"\u7dbe\u4e43, \u4e00\u5e0c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/"},{"@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%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%ae%e7%90%86%e8%a7%a3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/244","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":38162,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/244\/revisions\/38162"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}