{"id":1496,"date":"2019-03-16T17:30:57","date_gmt":"2019-03-16T08:30:57","guid":{"rendered":"https:\/\/www.bold.ne.jp\/engineer-club\/?p=1496"},"modified":"2025-10-06T17:22:49","modified_gmt":"2025-10-06T08:22:49","slug":"java-int","status":"publish","type":"post","link":"https:\/\/www.bold.ne.jp\/engineer-club\/java-int","title":{"rendered":"Java\u306eint\u3068\u306f\uff1fJava\u306e\u6574\u6570\u578b\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u300cint\u300d\u3092\u89e3\u8aac"},"content":{"rendered":"<p><strong>Java\u306eint\u306f\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u4e00\u3064\u3067\u300132\u30d3\u30c3\u30c8\u306e\u7bc4\u56f2\u3067\u6574\u6570\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002int\u3067\u306f\u3001\u304a\u3088\u305d\u00b121\u51045\u5343\u4e07\u306e\u5024\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<p>Java\u3067\u6574\u6570\u3092\u6271\u3046\u6642\u306f\u3001\u666e\u901a\u306f<span>int<\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002<span>int<\/span>\u3092\u4f7f\u308f\u306a\u3044<span>Java<\/span>\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u8003\u3048\u3089\u308c\u306a\u3044\u307b\u3069\u3001\u3054\u304f\u666e\u901a\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3001<span>int<\/span>\u3092\u4f7f\u3046\u3053\u3068\u306f\u3001<span>Java<\/span>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u672c\u3060\u3068\u3082\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3060\u304b\u3089\u3053\u305d\u3001<span>int<\/span>\u306e\u7279\u5fb4\u3084\u4f7f\u3044\u65b9\u3092\u3057\u3063\u304b\u308a\u77e5\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001<span>Java<\/span>\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3059\u308b\u4e0a\u3067\u3082\u306f\u3063\u304d\u308a\u3068\u3057\u305f\u8db3\u5834\u3084\u571f\u53f0\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u305d\u308c\u304f\u3089\u3044<span>Java<\/span>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f<span>int<\/span>\u306f\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f<span>int<\/span>\u306b\u3064\u3044\u3066\u3001<strong><span class=\"f-marker-p\">\u305d\u3082\u305d\u3082int\u3068\u306f\u3069\u3046\u3044\u3046\u3082\u306e\u304b<\/span><\/strong>\u3001<strong><span class=\"f-marker-p\">int\u306f\u3069\u3046\u3084\u3063\u3066\u4f7f\u3046\u306e\u304b<\/span><\/strong>\u3001\u6c17\u3092\u4ed8\u3051\u305f\u3044\u6240\u306a\u3069\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u3053\u306e\u8a18\u4e8b\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3001<span>Java 11<\/span>\u306e\u74b0\u5883\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#intJava\">\uff11\uff0eint\u306fJava\u306e\u6574\u6570\u578b\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9<\/a><ul><li><a href=\"#-int1\">\uff11-\uff11\uff0eint\u306f1\u305a\u3064\u5897\u6e1b\u3057\u3001\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u304c\u3042\u308b\u6574\u6570\u578b<\/a><\/li><li><a href=\"#-int21\">\uff11-\uff12\uff0eint\u306f\u00b121\u5104\u3050\u3089\u3044\u307e\u3067\u306e\u6574\u6570\u3092\u8868\u73fe\u3067\u304d\u308b<\/a><\/li><li><a href=\"#-Javaint32\">\uff11-\uff13\uff0eJava\u306eint\u306f\u3044\u3064\u3067\u3082\u3069\u3053\u3067\u308232\u30d3\u30c3\u30c8<\/a><\/li><\/ul><\/li><li><a href=\"#int\">\uff12\uff0eint\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/a><ul><li><a href=\"#-int\">\uff12-\uff11\uff0eint\u306e\u5ba3\u8a00\u306e\u4ed5\u65b9\u3001\u521d\u671f\u5024<\/a><\/li><li><a href=\"#-int-2\">\uff12-\uff12\uff0eint\u3092\u4f7f\u3063\u305f\u56db\u5247\u6f14\u7b97<\/a><\/li><li><a href=\"#-int-3\">\uff12-\uff13\uff0eint\u3067\u306e\u30d3\u30c3\u30c8\u6f14\u7b97<\/a><\/li><li><a href=\"#-int-4\">\uff12-\uff14\uff0eint\u3068\u4ed6\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u306e\u5909\u63db<\/a><\/li><li><a href=\"#-intString\">\uff12-\uff15\uff0eint\u3068String\u3068\u306e\u5909\u63db<\/a><\/li><\/ul><\/li><li><a href=\"#intInteger\">\uff13\uff0eint\u3068Integer<\/a><ul><li><a href=\"#i\">\uff13-\uff11\uff0e\u4e8c\u7a2e\u985e\u306e\u8868\u73fe\u65b9\u6cd5\u306f\u6027\u80fd\u78ba\u4fdd\u306e\u305f\u3081<\/a><\/li><li><a href=\"#-Integernull\">\uff13-\uff12\uff0e\u30af\u30e9\u30b9\u306eInteger\u306a\u3089null\u3092\u8868\u73fe\u3067\u304d\u308b<\/a><\/li><li><a href=\"#-intInteger\">\uff13-\uff13\uff0e\u30aa\u30fc\u30c8\u30dc\u30af\u30b7\u30f3\u30b0\u3067int\u3068Integer\u3092\u81ea\u52d5\u5909\u63db\u3059\u308b<\/a><\/li><li><a href=\"#-int-5\">\uff13-\uff14\uff0e\u3010\u5fdc\u7528\u3011\u7b26\u53f7\u306a\u3057int\u3068\u3057\u3066\u306e\u6271\u3044\u65b9<\/a><\/li><\/ul><\/li><li><a href=\"#i-2\">\uff14\uff0e\u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n<h2><span id=\"intJava\">\uff11\uff0eint\u306f<span>Java<\/span>\u306e\u6574\u6570\u578b\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9<\/span><\/h2>\n<p><strong>int\u306fJava\u3067\u6700\u3082\u3088\u304f\u4f7f\u3046\u6574\u6570\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b(primitive\u3001\u57fa\u672c\u30c7\u30fc\u30bf\u578b)\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u306e\u4e00\u3064\u3067\u3059\u3002<\/strong><\/p>\n<p>\u4e00\u3064\u306e<span>int<\/span>\u306e\u30b5\u30a4\u30ba\u306f<span>32<\/span>\u30d3\u30c3\u30c8<span>(4<\/span>\u30d0\u30a4\u30c8<span>)<\/span>\u3067\u3059\u3002<span>int<\/span>\u3068\u3044\u3046\u540d\u524d\u306e\u7531\u6765\u306f\u3001\u82f1\u8a9e\u306e<span>integer(<\/span>\u6574\u6570<span>)<\/span>\u306e\u5148\u982d\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>int\u3092\u4ed6\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u7c21\u5358\u306b\u6bd4\u8f03\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr style=\"height: 48px;\">\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u30c7\u30fc\u30bf\u578b<\/td>\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u5024\u306e\u7a2e\u985e<\/td>\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u30d3\u30c3\u30c8\u6570<\/td>\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u8868\u73fe\u3067\u304d\u308b\u5024\u306e\u7bc4\u56f2<\/td>\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u63a5\u5c3e\u8a9e<\/td>\n<td style=\"width: 16.6667%; height: 48px; border-color: #000000;\">\u5099\u8003<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">boolean<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u771f\u507d\u5024<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">1\u30d3\u30c3\u30c8<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">true\/false\u306e\u3069\u3061\u3089\u304b<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">&#8211;<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">byte<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6574\u6570<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">8\u30d3\u30c3\u30c8(1\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">-128\uff5e<span>127<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">&#8211;<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">short<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6574\u6570<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">16\u30d3\u30c3\u30c8(2\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">-32,768\uff5e<span>32,767<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">&#8211;<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">char<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6587\u5b57<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">16\u30d3\u30c3\u30c8(2\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">0\uff5e<span>65,535<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">&#8211;<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">Unicode\u6587\u5b57\u3001<span>\\u0000<\/span>\uff5e<span>\\uffff<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">int<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6574\u6570<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">32\u30d3\u30c3\u30c8(4\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">-2,147,483,648\uff5e<br \/>\n2,147,483,647<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">&#8211;<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u7d04<span>\u00b121<\/span>\u5104<span>4<\/span>\u5343<span>7<\/span>\u767e\u4e07\u3001<span>Unicode<\/span>\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">long<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6574\u6570<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">64\u30d3\u30c3\u30c8(8\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">-9,223,372,036,854,775,808\uff5e<br \/>\n<span>9,223,372,036,854,775,807<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">L\u307e\u305f\u306f<span>l<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u7d04<span>\u00b1922<\/span>\u4eac<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">float<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6d6e\u52d5\u5c0f\u6570\u70b9<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">32\u30d3\u30c3\u30c8(4\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u00b13.40282347E+38\uff5e<span> 1.40239846E-45<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">F\u307e\u305f\u306f<span>f<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u5358\u7cbe\u5ea6<br \/>\n\u7d04<span>\u00b13.4\u00d710<\/span>\u306e<span>38<\/span>\u4e57\uff5e\u7d04<span>\u00b11.4\u00d710<\/span>\u306e<span>-45<\/span>\u4e57<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">double<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u6d6e\u52d5\u5c0f\u6570\u70b9<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">64\u30d3\u30c3\u30c8(8\u30d0\u30a4\u30c8)<\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\u00b11.79769313486231570E+308\uff5e<span>\u00b14.94065645841246544E-324<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">D\u307e\u305f\u306f<span>d<\/span><\/td>\n<td style=\"width: 16.6667%; height: 24px; border-color: #000000;\">\n<p>\u500d\u7cbe\u5ea6<br \/>\n\u7d04<span>\u00b11.8\u00d710<\/span>\u306e<span>308<\/span>\u4e57\uff5e\u7d04<span>\u00b14.9\u00d710<\/span>\u306e<span>-324<\/span>\u4e57<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span id=\"-int1\">\uff11-\uff11\uff0eint\u306f<span>1<\/span>\u305a\u3064\u5897\u6e1b\u3057\u3001\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u304c\u3042\u308b\u6574\u6570\u578b<\/span><\/h3>\n<p>\u6574\u6570\u578b\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u6570\u5b57\u3092\u8868\u73fe\u3059\u308b\u30c7\u30fc\u30bf\u578b\u306e\u4e00\u3064\u3067\u3059\u3002\u6574\u6570\u306f<span>-1<\/span>\u3001<span>0<\/span>\u3001<span>1<\/span>\u3001<span>2<\/span>\u3001<span>3\u2026<\/span>\u306e\u3088\u3046\u306b\u3001\u3061\u3087\u3046\u3069<span>1<\/span>\u305a\u3064\u5897\u6e1b\u3059\u308b\u6570\u5024\u3067\u3001\u5c0f\u6570\u70b9\u306f\u542b\u307f\u307e\u305b\u3093\u3002\u5c0f\u6570\u70b9\u306e\u6570\u5024\u3092\u542b\u3081\u3089\u308c\u308b\u30c7\u30fc\u30bf\u578b\u306f\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u3068\u3044\u3046\u5225\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Java\u3067\u306f\u30d7\u30e9\u30b9\u306e\u6574\u6570\u3001\u30de\u30a4\u30ca\u30b9\u306e\u6574\u6570\u306e\u4e21\u65b9\u3092<span>int<\/span>\u3060\u3051\u3067\u8868\u73fe\u3057\u307e\u3059\u3002\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u306f\u3001\u7b26\u53f7\u306e\u306a\u3044\u30c7\u30fc\u30bf\u578b\u304c\u3042\u308a\u307e\u3059\u304c<span>(unsigned int<\/span>\u306a\u3069<span>)<\/span>\u3001<span>Java<\/span>\u306e<span>int<\/span>\u306f\u7b26\u53f7\u304c\u3042\u308b\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002<\/p>\n<h3><span id=\"-int21\">\uff11-\uff12\uff0eint\u306f<span>\u00b121<\/span>\u5104\u3050\u3089\u3044\u307e\u3067\u306e\u6574\u6570\u3092\u8868\u73fe\u3067\u304d\u308b<\/span><\/h3>\n<p>Java\u306e<span>int<\/span>\u3067\u306f\u3001<span>\u00b121<\/span>\u5104<span>5<\/span>\u5343\u4e07\u304f\u3089\u3044\u307e\u3067\u306e\u6574\u6570\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002\u6b63\u78ba\u306b\u66f8\u3051\u3070\u3001<span>-2,147,483,648<\/span>\uff5e<span>2,147,483,647<\/span>\u306e\u7bc4\u56f2\u306e\u6574\u6570\u3067\u3059\u3002<\/p>\n<p>32\u30d3\u30c3\u30c8\u306e<span>2<\/span>\u9032\u6570\u3067\u8868\u73fe\u3067\u304d\u308b\u30d1\u30bf\u30fc\u30f3\u306f\u7d04<span>43<\/span>\u5104\u3068\u304a\u308a\u306a\u306e\u3067\u3001\u5c11\u306a\u3044\u3068\u601d\u308f\u308c\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3067\u3082\u3001<span>Java<\/span>\u3067\u306e<span>int<\/span>\u306f\u3082\u3063\u3068\u3082\u5927\u304d\u306a\u6841\u306e<span>1<\/span>\u30d3\u30c3\u30c8\u3092\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u306e\u7b26\u53f7\u306b\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001\u6570\u5024\u306b\u4f7f\u3048\u308b\u30b5\u30a4\u30ba\u306f<span>31<\/span>\u30d3\u30c3\u30c8<span>(<\/span>\u7d04<span>21<\/span>\u5104<span>)<\/span>\u306b\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>int\u306e<span>32<\/span>\u30d3\u30c3\u30c8\u306e\u30d3\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u3068\u3001\u5b9f\u969b\u306e\u6570\u5b57\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">8\u30d0\u30a4\u30c8\u76ee<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">7\uff5e2\u30d0\u30a4\u30c8\u76ee<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1\u30d0\u30a4\u30c8\u76ee<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">10\u9032\u6570\u8868\u73fe<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5099\u8003<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30660<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u3059\u3079\u3066\u306e\u30d3\u30c3\u30c8\u304c<span>0<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30660<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0001<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30660<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0010<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">2<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\" colspan=\"5\">\u2026<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30661<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1110<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">2,147,483,646<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30661<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">2,147,483,647<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">Integer.MAX_VALUE<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30660<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">-2,147,483,648<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">Integer.MIN_VALUE<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1000<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30660<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">0001<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">-2,147,483,647<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\" colspan=\"5\">\u2026<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30661<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1110<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">-2<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\"><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u5168\u30661<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">1111<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">-1<\/td>\n<td style=\"width: 20%; height: 24px; border-color: #000000;\">\u3059\u3079\u3066\u306e\u30d3\u30c3\u30c8\u304c<span>1<\/span>\u3001<span>+1<\/span>\u3059\u308b\u3068<span>0<\/span>\u306b\u623b\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>int\u306f<span>0<\/span>\u304b\u3089\u59cb\u307e\u3063\u3066<span>1<\/span>\u305a\u3064\u5927\u304d\u304f\u306a\u308a\u3001<span>32<\/span>\u30d3\u30c3\u30c8\u76ee\u304c<span>0<\/span>\u304b\u3064<span>1<\/span>\uff5e<span>31<\/span>\u30d3\u30c3\u30c8\u76ee\u304c\u5168\u3066<span>1<\/span>\u304c\u6700\u3082\u5927\u304d\u306a\u6b63\u306e\u6574\u6570\u3067\u3059\u3002\u305d\u3053\u304b\u3089\u3001\u6b21\u306e<span>32<\/span>\u30d3\u30c3\u30c8\u76ee\u304c<span>1<\/span>\u304b\u3064<span>0<\/span>\uff5e<span>31<\/span>\u30d3\u30c3\u30c8\u76ee\u304c\u5168\u3066<span>0<\/span>\u304c\u6700\u3082\u5c0f\u3055\u306a\u8ca0\u306e\u6574\u6570\u3067\u3001<span>1<\/span>\u305a\u3064\u5927\u304d\u304f\u306a\u3063\u3066\u3044\u304d\u3001\u5168\u3066\u306e\u30d3\u30c3\u30c8\u304c<span>1<\/span>\u306b\u306a\u308b\u3068<span>-1<\/span>\u3067\u3059\u3002<\/p>\n<h3><span id=\"-Javaint32\">\uff11-\uff13\uff0eJava\u306e<span>int<\/span>\u306f\u3044\u3064\u3067\u3082\u3069\u3053\u3067\u3082<span>32<\/span>\u30d3\u30c3\u30c8<\/span><\/h3>\n<p>Java\u3067\u306f\u3069\u306e\u74b0\u5883\u3067\u3082\u3001\u6614\u3082\u4eca\u3082\u3053\u308c\u304b\u3089\u3082\u3001<span>int<\/span>\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u3067\u3059\u3002\u300c\u305d\u308c\u304c\u4f55\u306a\u306e<span>? <\/span>\u5f53\u7136\u3067\u3057\u3087<span>?<\/span>\u300d\u3068\u601d\u308f\u308c\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5b9f\u306f\u3053\u308c\u304c<span>Java<\/span>\u306e\u3044\u3044\u3068\u3053\u308d\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u306e\u5927\u304d\u3055\u306b\u3082\u3001\u74b0\u5883\u306b\u3088\u308b\u9055\u3044\u304c\u3042\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6614\u306e<span>C<\/span>\u8a00\u8a9e\u3067\u306f<span>int<\/span>\u306f<span>16<\/span>\u30d3\u30c3\u30c8\u3067\u3057\u305f\u304c\u3001\u4eca\u3067\u306f\u5927\u4f53<span>32<\/span>\u30d3\u30c3\u30c8\u3067\u3059\u3002\u3055\u3089\u306b\u3001\u4eca\u3067\u306f<span>int16\/int32\/int64<\/span>\u306a\u3069\u304c\u3042\u308a\u3001\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u4f7f\u3046\u306b\u306f\u306a\u304b\u306a\u304b\u8907\u96d1\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001<span>Java<\/span>\u3067\u306f\u6700\u521d\u304b\u3089<span>int<\/span>\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u3067\u3059\u3002\u3053\u308c\u306f\u4eca\u5f8c\u3082\u305a\u3063\u3068\u5909\u308f\u308a\u307e\u305b\u3093\u3002\u3069\u3093\u306a<span>Java<\/span>\u306e\u74b0\u5883\u3067\u3082\u540c\u3058\u3067\u3059\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u308a\u76f4\u3057\u306f\u3044\u3089\u306a\u3044\u306e\u3067\u3059\u3002\u899a\u3048\u3084\u3059\u3055\u3068\u8a00\u3046\u610f\u5473\u3067\u3082\u3044\u3044\u3053\u3068\u3067\u3059\u3088\u306d\u3002<\/p>\n<h2><span id=\"int\">\uff12\uff0eint\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/span><\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001<span>int<\/span>\u306e\u4f7f\u3044\u65b9\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001<span>int<\/span>\u3092\u4f7f\u3046\u4e0a\u3067\u306f\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3082\u9806\u756a\u306b\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"-int\">\uff12-\uff11\uff0eint\u306e\u5ba3\u8a00\u306e\u4ed5\u65b9\u3001\u521d\u671f\u5024<\/span><\/h3>\n<h4>\uff12-\uff11-\uff11\uff0eint\u306e\u5909\u6570\u30fb\u914d\u5217\u306e\u5ba3\u8a00\u3001\u521d\u671f\u5024\u306e\u6307\u5b9a<\/h4>\n<p>int\u306f\u578b\u306e\u4e00\u3064\u3067\u3059\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u6570\u3084\u914d\u5217\u5909\u6570\u306e\u578b\u3068\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3084\u3001\u623b\u308a\u5024\u3068\u3057\u3066\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">\/\/ int\u578b\u306e\u5909\u6570\u306e\u5ba3\u8a00\u3068\u3001\u521d\u671f\u5024\u306e\u4ee3\u5165\r\nint i = 65535;\r\n\r\n\/\/ int\u578b\u306e\u914d\u5217\u306e\u5ba3\u8a00\u3068\u3001\u5404\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3078\u306e\u5024\u306e\u4ee3\u5165\r\nint[] iarr = new int[5];\r\niarr[0] = 11;\r\niarr[1] = 12;\r\niarr[2] = 13;\r\niarr[3] = 14;\r\niarr[4] = 15;<\/pre>\n<h4>\uff12-\uff11-\uff12\uff0eint\u306e\u30ea\u30c6\u30e9\u30eb\u306e\u66f8\u304d\u65b9<\/h4>\n<p>\u5c0f\u6570\u70b9\u306e\u7121\u3044\u6570\u5b57\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u306b\u305d\u306e\u307e\u307e\u66f8\u304f\u3068\u3001<span>Java<\/span>\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u306f<span>int<\/span>\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u3092\u30ea\u30c6\u30e9\u30eb<span>(<\/span>\u6587\u5b57\u3069\u304a\u308a\u306e\u3001\u3068\u3044\u3046\u610f\u5473<span>)<\/span>\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<p>int\u306e\u30ea\u30c6\u30e9\u30eb\u3092\u66f8\u304f\u6642\u306f\u3001\u63a5\u982d\u8a9e\u3092\u3064\u3051\u306a\u3051\u308c\u3070<span>10<\/span>\u9032\u6570\u3067\u3059\u3002<span>Java 11<\/span>\u306e\u6642\u70b9\u3067\u306f<span>10<\/span>\u9032\u6570\u306e\u4ed6\u306b\u4ee5\u4e0b\u306e\u66f8\u304d\u65b9\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001<span>&#8220;_&#8221;<\/span>\u3067\u6841\u533a\u5207\u308a\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3082\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><span>2<\/span>\u9032\u6570<span>(&#8220;0b&#8221;<\/span>\u3067\u59cb\u307e\u308b\u3001<span>Java 7<\/span>\u304b\u3089<span>)<\/span><\/li>\n<li><span>8<\/span>\u9032\u6570<span>(&#8220;0&#8221;<\/span>\u3067\u59cb\u307e\u308b<span>)<\/span><\/li>\n<li><span>10<\/span>\u9032\u6570<span>(<\/span>\u63a5\u982d\u8a9e\u306a\u3057<span>)<\/span><\/li>\n<li><span>16<\/span>\u9032\u6570<span>(&#8220;0x&#8221;<\/span>\u3067\u59cb\u307e\u308b<span>)<\/span><\/li>\n<\/ul>\n<pre class=\"prettyprint lang:default decode:true\">int i1 = 123456789; \/\/ 10\u9032\u6570\r\nint i2 = 0b1010101; \/\/ 2\u9032\u6570\r\nint i3 = 012345670; \/\/ 8\u9032\u6570\r\nint i4 = 0x123ABCDE; \/\/ 16\u9032\u6570\r\nint i5 = 123_456_789; \/\/ \u6841\u533a\u5207\u308a(3\u6841\u3054\u3068)\r\nint i6 = 0b1111_1010_0101; \/\/ \u6841\u533a\u5207\u308a(4\u30d3\u30c3\u30c8\u3054\u3068)<\/pre>\n<h4>\uff12-\uff11-\uff13\uff0eint\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u914d\u5217\u306e\u521d\u671f\u5024\u306f<span>0<\/span><\/h4>\n<p>\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u3057\u3066<span>int<\/span>\u578b\u306e\u5909\u6570\u3092\u4f7f\u3063\u305f\u308a\u3001<span>int<\/span>\u578b\u306e\u914d\u5217\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u672a\u521d\u671f\u5316\u3060\u3068<span>0<\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">class IntTest {\r\n\tint i; \/\/ int\u3092\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u3057\u3066\u5ba3\u8a00\u3057\u305f\u304c\u3001\u521d\u671f\u5024\u306f\u672a\u8a2d\u5b9a\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tIntTest intTest = new IntTest();\r\n\t\tSystem.out.println(intTest.i); \/\/ \u2192 0\u3001\u5909\u6570\u5ba3\u8a00\u6642\u306b\u521d\u671f\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u308b\r\n\r\n\t\tint[] array = new int[5];\r\n\t\tSystem.out.println(array[0]); \/\/ \u2192 0\u3001new\u3057\u305f\u6642\u70b9\u3067\u914d\u5217\u5168\u4f53\u304c0\u3067\u521d\u671f\u5316\u3055\u308c\u308b\r\n\t}\r\n}<\/pre>\n<h3><span id=\"-int-2\">\uff12-\uff12\uff0eint\u3092\u4f7f\u3063\u305f\u56db\u5247\u6f14\u7b97<\/span><\/h3>\n<p>int\u3092\u4f7f\u3063\u305f\u56db\u5247\u6f14\u7b97<span>(<\/span>\u52a0\u6e1b\u4e57\u9664<span>)<\/span>\u306b\u306f\u3001\u56db\u5247\u6f14\u7b97\u7528\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3001\u3064\u307e\u308a<span>+-*\/<\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002\u4f59\u308a\u3092\u6c42\u3081\u308b\u306a\u3089<span>%<\/span>\u3067\u3059\u3002\u3067\u3059\u306e\u3067\u3001\u3054\u304f\u76f4\u611f\u7684\u306b\u8a08\u7b97\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u8a08\u7b97\u7d50\u679c\u3067\u5c0f\u6570\u70b9\u304c\u51fa\u305f\u5834\u5408\u3001<span>int<\/span>\u306e\u5909\u6570\u3078\u4ee3\u5165\u3059\u308b\u3068\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u5024\u306f\u5207\u308a\u6368\u3066\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u6574\u6570\u578b\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306b\u5171\u901a\u3059\u308b\u52d5\u304d\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i = 10;\r\nint j = 3;\r\n\r\nint plus = i + j;\r\nint minus = i - j;\r\nint multiply = i * j;\r\nint divide = i \/ j;\r\nint surplus = i % j;\r\n\r\nSystem.out.println(plus); \/\/ \u2192 13\r\nSystem.out.println(minus); \/\/ \u2192 7\r\nSystem.out.println(multiply); \/\/ \u2192 300\r\nSystem.out.println(divide); \/\/ \u2192 3(\u8a08\u7b97\u4e0a\u306f10 \/ 3 = 3.333\u2026\u3060\u304c\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u5207\u308a\u6368\u3066\u3089\u308c\u30660\u306b\u306a\u308b)\r\nSystem.out.println(surplus); \/\/ \u2192 1<\/pre>\n<h4>\uff12-\uff11-\uff11\uff0e\u5927\u304d\u306a\u6574\u6570\u3092\u8a08\u7b97\u3059\u308b\u306a\u3089\u3001\u7b26\u53f7\u306e\u5909\u5316\u306b\u8981\u6ce8\u610f<span>!!<\/span><\/h4>\n<p>\u7d76\u5bfe\u5024\u304c\u5927\u304d\u306a\u5024\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u7b26\u53f7\u306e\u5909\u5316\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>int\u306b\u6570\u5024\u3092\u52a0\u6e1b\u7b97\u3057\u3066\u3001\u30d7\u30e9\u30b9\u5074\u306e\u6700\u5927\u5024\u3092\u8d85\u3048\u308b\u3068\u30de\u30a4\u30ca\u30b9\u5074\u306e\u6700\u5927\u5024\u306b\u306a\u308a\u3001\u30de\u30a4\u30ca\u30b9\u5074\u306e\u6700\u5c0f\u5024\u3088\u308a\u3082\u5c0f\u3055\u304f\u306a\u308b\u3068\u30d7\u30e9\u30b9\u5074\u306e\u6700\u5927\u5024\u306b\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u304c\u3072\u3063\u304f\u308a\u8fd4\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u3042\u308a\u3001\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i1 = Integer.MAX_VALUE;\r\nint i2 = i1 + 1;\r\nint i3 = i1 + 2;\r\nSystem.out.println(i1); \/\/ \u2192 2147483647\r\nSystem.out.println(i2); \/\/ \u2192 -2147483648\r\nSystem.out.println(i3); \/\/ \u2192 -2147483647\r\n\r\nint i4 = Integer.MIN_VALUE;\r\nint i5 = i4 - 1;\r\nint i6 = i4 - 2;\r\nSystem.out.println(i4); \/\/ \u2192 -2147483648\r\nSystem.out.println(i5); \/\/ \u2192 2147483647\r\nSystem.out.println(i6); \/\/ \u2192 2147483646<\/pre>\n<p>\u3053\u308c\u306f\u3001\u4e8c\u9032\u6570\u3067\u8a00\u3046\u3068<span> 0111111111111111111111111111111 <\/span>\u3068<span> 1000000000000000000000000000000 <\/span>\u306e\u9593\u3067\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u304c\u5909\u308f\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u524d\u8005\u304c<span>Integer.MAX_VALUE<\/span>\u3001\u5f8c\u8005\u304c<span>Integer.MIN_VALUE<\/span>\u3067\u3059\u3002\u3053\u308c\u3092\u7d30\u304b\u304f\u8a00\u3048\u3070\u3001<span>Java<\/span>\u3067\u306f<span>2<\/span>\u306e\u88dc\u6570\u3067\u30de\u30a4\u30ca\u30b9\u306e\u6570\u5024\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\u304b\u3089\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u554f\u984c\u306b\u306a\u308b\u4f8b\u3068\u3057\u3066\u3001\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u3067\u91d1\u984d\u9805\u76ee\u3092<span>int<\/span>\u306b\u3057\u3066\u3001\u305d\u306e\u91d1\u984d\u540c\u58eb\u3092\u8db3\u3057\u5408\u308f\u305b\u308b\u3068\u4e88\u671f\u305b\u306c\u6570\u5024\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<span>15<\/span>\u5104\u3068<span>10<\/span>\u5104\u3092\u8db3\u3057\u3066\u3082<span>25<\/span>\u5104\u306b\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u3002\u8a08\u7b97\u3059\u308b\u6570\u5024\u306e\u6841\u6570\u304c\u5927\u304d\u3044\u306a\u3089\u3001\u3082\u3063\u3068\u5927\u304d\u306a\u6570\u304c\u6271\u3048\u308b<span>long<\/span>\u3084<span>double<\/span>\u306b\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i1 = 1_000_000_000; \/\/ 10\u5104\r\nint i2 = 1_500_000_000; \/\/ 15\u5104\r\nint sum = i1 + i2;\r\nSystem.out.println(sum); \/\/ \u2192 -1794967296! 25\u5104\u306b\u306f\u306a\u3089\u306a\u3044!<\/pre>\n<h3><span id=\"-int-3\">\uff12-\uff13\uff0eint\u3067\u306e\u30d3\u30c3\u30c8\u6f14\u7b97<\/span><\/h3>\n<p>int\u306f\u30d3\u30c3\u30c8\u6f14\u7b97\u306b\u3082\u4f7f\u3048\u307e\u3059\u3002\u696d\u52d9\u5411\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u30d3\u30c3\u30c8\u6f14\u7b97\u306f\u307b\u3068\u3093\u3069\u4f7f\u3044\u307e\u305b\u3093\u304c\u3001\u79d1\u5b66\u6280\u8853\u8a08\u7b97\u306a\u3069\u51e6\u7406\u901f\u5ea6\u304c\u8981\u6c42\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u30d3\u30c3\u30c8\u6f14\u7b97\u306b\u3088\u308a\u8a08\u7b97\u3092\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u639b\u3051\u7b97\u3084\u5272\u308a\u7b97\u3092\u30b7\u30d5\u30c8\u3067\u4ee3\u7528\u3059\u308b\u306e\u304c\u4ee3\u8868\u7684\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<span>C<\/span>\u8a00\u8a9e\u306e\u540d\u6b8b\u304c\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3060\u3068\u3001\u51e6\u7406\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u30d3\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u3067\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3042\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4ed5\u69d8\u3068\u3057\u3066\u7279\u5b9a\u30d3\u30c3\u30c8\u306e\u5024\u304c<span>1<\/span>\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30d3\u30c3\u30c8\u6f14\u7b97\u306e\u3084\u308a\u65b9\u306f\u899a\u3048\u3066\u304a\u3044\u3066\u3082\u640d\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001<span>Java<\/span>\u3067<span>int<\/span>\u3092\u4f7f\u3063\u305f\u30d3\u30c3\u30c8\u6f14\u7b97\u306e\u3084\u308a\u65b9\u3060\u3051\u3001\u7c21\u5358\u306b\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i1 = 0b101;\r\nint i2 = 0b010;\r\n\r\n\/\/ \u8ad6\u7406\u548c(or) |\r\nint or = i1 | i2;\r\nSystem.out.println(Integer.toBinaryString(or)); \/\/ \u2192 111\r\n\/\/ \u8ad6\u7406\u7a4d(and) &amp;\r\nint and = i1 &amp; i2;\r\nSystem.out.println(Integer.toBinaryString(and)); \/\/ \u2192 0\r\n\r\ni1 = 0b1100;\r\ni2 = 0b1010;\r\n\r\n\/\/ \u6392\u4ed6\u7684\u8ad6\u7406\u548c(xor) ^\r\nint xor = i1 ^ i2;\r\nSystem.out.println(Integer.toBinaryString(xor)); \/\/ \u2192 110\r\n\r\ni1 = 0xfffffffe;\r\n\r\n\/\/ \u8ad6\u7406\u5426\u5b9a(not) ~\r\nint not = ~i1;\r\nSystem.out.println(Integer.toBinaryString(not)); \/\/ \u2192 1\r\n\r\ni1 = 0b11111111111111111111111111111111;\r\n\r\n\/\/ \u5de6\u30b7\u30d5\u30c8 &lt;&lt;\r\nint ls = i1 &lt;&lt; 1;\r\nSystem.out.println(Integer.toBinaryString(ls)); \/\/ \u2192 11111111111111111111111111111110\r\n\/\/ \u53f3\u30b7\u30d5\u30c8(\u7b97\u8853\u30b7\u30d5\u30c8) &gt;&gt;\r\nint rs1 = i1 &gt;&gt; 1;\r\nSystem.out.println(Integer.toBinaryString(rs1)); \/\/ \u2192 11111111111111111111111111111111\r\n\/\/ \u53f3\u30b7\u30d5\u30c8(\u7b26\u53f7\u306a\u3057\u3001\u8ad6\u7406\u30b7\u30d5\u30c8) &gt;&gt;&gt;\r\nint rs2 = i1 &gt;&gt;&gt; 1;\r\nSystem.out.println(Integer.toBinaryString(rs2)); \/\/ \u2192 1111111111111111111111111111111<\/pre>\n<h3><span id=\"-int-4\">\uff12-\uff14\uff0eint\u3068\u4ed6\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u306e\u5909\u63db<\/span><\/h3>\n<p>Java\u3067\u306f\u6570\u5024\u578b\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u3057\u3066\u3001<span>int<\/span>\u3068\u30d3\u30c3\u30c8\u6570\u304c\u9055\u3046\u6574\u6570<span>(byte\/short\/char\/long)<\/span>\u3068\u3001\u5c0f\u6570\u70b9\u304c\u6271\u3048\u308b\u3082\u306e<span>(float\/double)<\/span>\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3089\u3068\u306e\u5909\u63db\u3084\u6f14\u7b97\u306e\u6642\u306b\u306f\u6ce8\u610f\u3059\u308b\u3053\u3068\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>\uff12-\uff14-\uff11\uff0e\u6574\u6570\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u306e\u5909\u63db<\/h4>\n<p>\u30d3\u30c3\u30c8\u6570\u304c\u9055\u3046\u3082\u306e\u3068\u306e\u5909\u63db\u3067\u306f\u3001\u30d3\u30c3\u30c8\u6570\u304c\u5c0f\u3055\u3044\u578b<span>\u2192<\/span>\u5927\u304d\u3044\u578b\u3078\u306e\u5909\u63db\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<span>int<\/span>\u306a\u3089\u3001<span>byte\/short\/char<\/span>\u304b\u3089\u306e\u5909\u63db\u3067\u3059\u3002\u30d3\u30c3\u30c8\u6570\u304c\u5c0f\u3055\u3044\u578b\u306e\u5024\u306f\u3001\u30d3\u30c3\u30c8\u6570\u304c\u5927\u304d\u3044\u65b9\u306e\u578b\u3067\u5168\u3066\u8868\u73fe\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u30d3\u30c3\u30c8\u6570\u304c\u5927\u304d\u3044\u578b<span>\u2192<\/span>\u5c0f\u3055\u3044\u578b\u3078\u5909\u63db\u3059\u308b\u5834\u5408\u306f\u3001\u5927\u304d\u3044\u578b\u306e\u4e0a\u4f4d\u30d3\u30c3\u30c8\u306b\u3042\u308b\u60c5\u5831\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002<span>int<\/span>\u306a\u3089<span>long<\/span>\u304b\u3089\u306e\u5909\u63db\u304c\u8981\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30d3\u30c3\u30c8\u6570\u304c\u5927\u304d\u3044\u578b\u304b\u3089\u5c0f\u3055\u3044\u578b\u306b\u5909\u63db\u3059\u308b\u969b\u306f\u3001\u660e\u793a\u7684\u306a\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u5024\u304c\u5931\u308f\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u64cd\u4f5c\u3092\u3057\u3066\u3044\u308b\u306e\u3060\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u306b\u610f\u8b58\u3055\u305b\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u30d3\u30c3\u30c8\u6570\u304c\u5c0f\u3055\u3044\u578b\u304b\u3089\u5927\u304d\u306a\u578b\u3078\u306f\u30ad\u30e3\u30b9\u30c8\u306f\u3044\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u3053\u3067\u3082\u6697\u9ed9\u7684\u30ad\u30e3\u30b9\u30c8\u3068\u3044\u3046\u3082\u306e\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">byte b = -128;\r\nshort s = -32768;\r\nchar c = 65535;\r\nlong l = -9223372036854775808L; \/\/ 0b100000...\u306e\u3088\u3046\u306b\u30011\u306e\u5f8c\u308d\u306b0\u304c63\u500b\u7d9a\u304f\r\n\r\nint i1 = b;\r\nint i2 = s;\r\nint i3 = c;\r\nint i4 = (int)l; \/\/ 64\u30d3\u30c3\u30c8\u306elong\u304b\u308932\u30d3\u30c3\u30c8\u306eint\u3078\u306e\u5909\u63db\u306b\u306f\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u8981\r\n\r\nSystem.out.println(i1); \/\/ \u2192 -128\r\nSystem.out.println(i2); \/\/ \u2192 -32768\r\nSystem.out.println(i3); \/\/ \u2192 -65535\r\nSystem.out.println(i4); \/\/ \u2192 0! long\u306e33\uff5e64\u30d3\u30c3\u30c8\u76ee\u304c\u306a\u304f\u306a\u308a\u3001\u5168\u30660\u306b\u306a\u3063\u305f\u305f\u3081<\/pre>\n<p>\u9006\u306b\u3001<span>int<\/span>\u304b\u3089\u5909\u63db\u3059\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306e\u30d3\u30c3\u30c8\u6570\u307e\u3067\u306e\u5024\u306b\u306a\u308a\u307e\u3059\u3002<span>long<\/span>\u306a\u3089<span>int<\/span>\u3088\u308a\u3082\u5927\u304d\u3044\u306e\u3067\u3001\u5024\u3092\u305d\u306e\u307e\u307e\u4fdd\u6301\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u4f8b\u3060\u3068\u3001<span>byte\/short\/char<\/span>\u306f\u305d\u308c\u305e\u308c\u306e\u30d3\u30c3\u30c8\u304c\u5168\u3066<span>1<\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u30d3\u30c3\u30c8\u304c\u5168\u3066<span>1<\/span>\u3060\u3068\u3001\u6574\u6570\u578b\u306a\u3089\u5171\u901a\u3067<span>-1<\/span>\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i = 0b11111111111111111; \/\/ 1\uff5e17\u30d3\u30c3\u30c8\u76ee\u307e\u30671\u3068\u3059\u308b\u3002\u305d\u3053\u304b\u3089\u4e0a\u306f0\r\nSystem.out.println(i); \/\/ \u2192 131071\r\n\r\nbyte b = (byte)i;\r\nshort s = (short)i;\r\nchar c = (char)i;\r\nlong l = i; \/\/ \u30d3\u30c3\u30c8\u6570\u304c\u3088\u308a\u591a\u3044long\u3078\u306a\u3089\u30ad\u30e3\u30b9\u30c8\u306f\u3057\u306a\u304f\u3066\u3082\u3044\u3044\r\n\r\nSystem.out.println(b); \/\/ \u2192 -1\u30010b11111111\r\nSystem.out.println(s); \/\/ \u2192 -1\u30010b1111111111111111\r\nSystem.out.println((int)c); \/\/ \u2192 65535\u30010b1111111111111111\r\nSystem.out.println(l); \/\/ \u2192 131071\u3001long\u306a\u3089\u30ab\u30d0\u30fc\u3067\u304d\u308b<\/pre>\n<h4>\uff12-\uff14-\uff12\uff0e\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3068\u306e\u5909\u63db<\/h4>\n<p>\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6<span>(float\/double)<\/span>\u3068<span>int<\/span>\u306e\u9593\u3067\u5909\u63db\u3092\u3059\u308b\u3068\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306b\u306f\u3042\u3063\u305f\u5c0f\u6570\u90e8\u304c\u5931\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u306f<span>int<\/span>\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u6841\u304c\u5927\u304d\u306a\u6570\u5024\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u3046\u3044\u3046\u5927\u304d\u306a\u6841\u306e\u60c5\u5831\u3082\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>float\/double\u304b\u3089<span>int<\/span>\u306b\u5909\u63db\u3059\u308b\u969b\u306f\u3001\u5024\u304c\u5931\u308f\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u64cd\u4f5c\u306a\u306e\u3067\u3001\u660e\u793a\u7684\u306a\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002\u9006\u306b\u3001<span>int<\/span>\u304b\u3089<span>float\/double<\/span>\u3078\u306e\u5909\u63db\u306b\u306f\u30ad\u30e3\u30b9\u30c8\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">double d1 = 1.23;\r\ndouble d2 = Double.MAX_VALUE; \/\/ 1.7976931348623157E308\u3001\u7d041.8\u00d710\u306e308\u4e57!!\r\n\r\nint i1 = (int)d1;\r\nint i2 = (int)d2;\r\n\r\nSystem.out.println(i1); \/\/ \u2192 1\r\nSystem.out.println(i2); \/\/ \u2192 2147483647\u3001\u7d042.15\u00d710\u306e9\u4e57<\/pre>\n<pre class=\"prettyprint lang:default decode:true\">int i = Integer.MAX_VALUE;\r\nSystem.out.println(i); \/\/ \u2192 2147483648\r\n\r\nfloat f = i;\r\ndouble d = i;\r\n\r\nSystem.out.println(f); \/\/ \u2192 2.14748365E9\r\nSystem.out.println(d); \/\/ \u2192 2.147483647E9<\/pre>\n<h3><span id=\"-intString\">\uff12-\uff15\uff0eint\u3068<span>String<\/span>\u3068\u306e\u5909\u63db<\/span><\/h3>\n<p>String\u3082<span>int<\/span>\u3068\u4e26\u3093\u3067<span>Java<\/span>\u3067\u306f\u91cd\u8981\u306a\u30af\u30e9\u30b9\u3067\u3059\u3002<span>String<\/span>\u3092<span>int<\/span>\u306b\u3059\u308b\u3053\u3068\u3001\u307e\u305f<span>int<\/span>\u3092<span>String<\/span>\u306b\u3059\u308b\u3053\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u65e5\u5e38\u8336\u98ef\u4e8b\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u305d\u306e\u65b9\u6cd5\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\n<h4>\uff12-\uff15-\uff11\uff0eString\u2192int\u306e\u5909\u63db<\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3060\u6587\u5b57\u5217\u3084\u3001\u5f15\u6570\u3067\u53d7\u3051\u53d6\u3063\u305f\u6587\u5b57\u5217\u304b\u3089<span>int<\/span>\u3092\u4f5c\u308a\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3044\u3046\u6642\u306f<span>Integer.parseInt<\/span>\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002\u6587\u5b57\u5217\u3092<span>int<\/span>\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u307e\u3059\u3002<span>int<\/span>\u3068\u89e3\u91c8\u3067\u304d\u306a\u3044\u6587\u5b57\u5217\u306e\u5834\u5408\u306f<span>NumberFormatException<\/span>\u304c<span>throw<\/span>\u3055\u308c\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u3092\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">String intStr = \"12345\";\r\nint i = Integer.parseInt(intStr);\r\nSystem.out.println(i); \/\/ \u2192 12345<\/pre>\n<h4>\uff12-\uff15-\uff12\uff0eint\u2192String\u306e\u5909\u63db<\/h4>\n<p>\u9006\u306b\u3001<span>int<\/span>\u3092<span>String<\/span>\u306b\u3057\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002\u7c21\u5358\u306b\u884c\u3046\u306a\u3089\u3001<span>Integer.toString(int)<\/span>\u304b\u3001<span>String.valueOf(int)<\/span>\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002\u3061\u306a\u307f\u306b\u3001\u3069\u3061\u3089\u3092\u4f7f\u3063\u3066\u3082\u7d50\u679c\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i = 12345;\r\nString intStr = String.valueOf(i);\r\nSystem.out.println(intStr); \/\/ \u2192 \"12345\"<\/pre>\n<p>\u307e\u305f\u3001<span>int<\/span>\u3092<span>3<\/span>\u6841\u533a\u5207\u308a\u306a\u3069\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u305f\u308a\u3001<span>0<\/span>\u57cb\u3081\u3092\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u306e\u5834\u5408\u306f\u3001<span>java.text.DecimalFormat<\/span>\u3084<span>String.format<\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u66f8\u5f0f\u306e\u8a73\u7d30\u306f\u3001<span>Javadoc<\/span>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i = 1234567;\r\n\r\nDecimalFormat df1 = new DecimalFormat(\"#,###\");\r\nDecimalFormat df2 = new DecimalFormat(\"000,000,000\");\r\n\r\nString intStr1 = df1.format(i);\r\nString intStr2 = df2.format(i);\r\n\r\nSystem.out.println(intStr1); \/\/ \u2192 1,234,567\r\nSystem.out.println(intStr2); \/\/ \u2192 001,234,567<\/pre>\n<pre class=\"prettyprint lang:default decode:true\">int i = 1234567;\r\n\r\nString intStr1 = String.format(\"%,d\", i);\r\nString intStr2 = String.format(\"%,011d\", i);\r\n\r\nSystem.out.println(intStr1); \/\/ \u2192 1,234,567\r\nSystem.out.println(intStr2); \/\/ \u2192 001,234,567<\/pre>\n<blockquote>\n<p>java.text.DecimalFormat<\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/javase\/jp\/11\/docs\/api\/java.base\/java\/text\/DecimalFormat.html\">https:\/\/docs.oracle.com\/javase\/jp\/11\/docs\/api\/java.base\/java\/text\/DecimalFormat.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>java.lang.String.format<\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/javase\/jp\/11\/docs\/api\/java.base\/java\/lang\/String.html#format(java.lang.String,java.lang.Object...)\">https:\/\/docs.oracle.com\/javase\/jp\/11\/docs\/api\/java.base\/java\/lang\/String.html#format(java.lang.String,java.lang.Object&#8230;)<\/a><\/p>\n<\/blockquote>\n<h2><span id=\"intInteger\">\uff13\uff0eint\u3068<span>Integer<\/span><\/span><\/h2>\n<p>Java\u3067\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u306e\u6574\u6570\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306b\u3001<span>int<\/span>\u3068<span>Integer<\/span>\u306e\u4e8c\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<span>Java<\/span>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u521d\u5fc3\u8005\u306f\u3001\u306a\u305c\u540c\u3058\u6574\u6570\u306e\u8868\u3057\u65b9\u304c\u4e8c\u3064\u3042\u308b\u306e\u304b\u6df7\u4e71\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u305d\u306e\u7406\u7531\u3068\u3001<span>int<\/span>\u3068<span>Integer<\/span>\u306e\u4f7f\u3044\u5206\u3051\u306e\u65b9\u91dd\u306a\u3069\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"i\">\uff13-\uff11\uff0e\u4e8c\u7a2e\u985e\u306e\u8868\u73fe\u65b9\u6cd5\u306f\u6027\u80fd\u78ba\u4fdd\u306e\u305f\u3081<\/span><\/h3>\n<p>Java\u3067\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e<span>int<\/span>\u3068\u3001\u30af\u30e9\u30b9\u306e<span>Integer<\/span>\u306f\u5225\u7269\u3067\u3059\u3002<span>C#<\/span>\u306a\u3069\u3067\u306f\u3053\u3046\u3044\u3046\u533a\u5225\u304c\u306a\u3044\u306e\u306b\u3001\u306a\u305c<span>Java<\/span>\u3067\u306f\u3042\u308b\u306e\u304b\u3002\u3053\u308c\u306f\u3001<span>Java<\/span>\u304c\u751f\u307e\u308c\u305f\u5f53\u6642\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u3067\u3057\u305f\u3002<\/p>\n<p>Java\u306f<span>1995<\/span>\u5e74\u306b\u767b\u5834\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u5f53\u6642\u306e<span>CPU<\/span>\u306e\u30af\u30ed\u30c3\u30af\u5468\u6ce2\u6570\u306f\u4eca\u3068\u306f\u6841\u304c\u9055\u3044\u3001\u4e00\u822c\u5411\u3051\u306e<span>CPU<\/span>\u3067\u3088\u3046\u3084\u304f<span>100MHz<\/span>\u3092\u8d85\u3048\u305f\u304f\u3089\u3044\u3002\u30e1\u30e2\u30ea\u306e\u91cf\u3082\u5168\u4f53\u3067\u6570<span>MB<\/span>\uff5e\u6570<span>10MB<\/span>\u3068\u975e\u5e38\u306b\u4e4f\u3057\u304b\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>int\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u306e\u6570\u5b57\u305d\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u697d\u306b\u901f\u304f\u6271\u3048\u307e\u3059\u3002\u3057\u304b\u3057\u3001<span>int<\/span>\u3092\u30af\u30e9\u30b9\u3068\u3059\u308b\u3068\u3001\u4e00\u3064\u306e<span>int<\/span>\u306e\u6570\u5024\u3092\u8868\u3059\u306e\u306b<span>32<\/span>\u30d3\u30c3\u30c8\u3088\u308a\u3082\u305a\u3063\u3068\u591a\u304f\u306e\u30e1\u30e2\u30ea\u3092\u4f7f\u3044\u307e\u3059\u3002\u7c21\u5358\u306a\u8a08\u7b97\u3092\u3059\u308b\u306b\u3082\u3001\u51e6\u7406\u4e0a\u3067\u306f\u4f59\u5206\u306a\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"-Integernull\">\uff13-\uff12\uff0e\u30af\u30e9\u30b9\u306e<span>Integer<\/span>\u306a\u3089<span>null<\/span>\u3092\u8868\u73fe\u3067\u304d\u308b<\/span><\/h3>\n<p>Java\u3067<span>Integer<\/span>\u3092\u4f7f\u3046\u306e\u306f\u3001<span>Integer<\/span>\u304c\u6301\u3064\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u305f\u3044\u6642\u3068\u3001\u5024\u304c\u306a\u3044\u5834\u5408<span>\u2026<\/span>\u3059\u306a\u308f\u3061<span>null<\/span>\u3092\u8868\u73fe\u3057\u305f\u3044\u6642\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001<span>SQL<\/span>\u3067\u306f\u5024\u306e\u6709\u308a\u7121\u3057\u3092<span>NULL<\/span>\u304b\u3069\u3046\u304b\u3067\u8868\u73fe\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u308c\u3092<span>Java<\/span>\u306e<span>int<\/span>\u3067\u306f\u4e0a\u624b\u306b\u8868\u73fe\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3059\u304b\u3089\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u306f<span>0<\/span>\u3084<span>-1<\/span>\u3084<span>999<\/span>\u306a\u3069\u306e\u5024\u306b\u7279\u5225\u306a\u610f\u5473\u3092\u6301\u305f\u305b\u305f\u308a\u3001<span>Integer.MAX_VALUE<\/span>\u3084<span>MIN_VALUE<\/span>\u3092\u4f7f\u3046\u306e\u3067\u3059\u304c\u3001\u78ba\u5b9f\u3055\u306b\u306f\u6b20\u3051\u307e\u3059\u3002\u305d\u3046\u3044\u3046\u5024\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5fd8\u308c\u308b\u306a\u3069\u306e\u30df\u30b9\u3082\u3057\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3046\u6642\u306b\u53c2\u7167\u578b\u3067\u3042\u308b<span>Integer<\/span>\u3092\u4f7f\u3048\u3070\u3001\u5024\u304c\u306a\u3044\u3053\u3068\u3092<span>null<\/span>\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u308b\u306e\u3067\u3059\u3002<span>Integer<\/span>\u3092\u3069\u3046\u3044\u3046\u6642\u306b\u4f7f\u3046\u304b\u5206\u304b\u3089\u306a\u3044\u65b9\u306f\u3001\u305d\u306e\u5909\u6570\u3067<span>null<\/span>\u3092\u8868\u73fe\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3092\u4e00\u3064\u306e\u6307\u91dd\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><span id=\"-intInteger\">\uff13-\uff13\uff0e\u30aa\u30fc\u30c8\u30dc\u30af\u30b7\u30f3\u30b0\u3067<span>int<\/span>\u3068<span>Integer<\/span>\u3092\u81ea\u52d5\u5909\u63db\u3059\u308b<\/span><\/h3>\n<p>Java 1.5\u3067\u30aa\u30fc\u30c8\u30dc\u30af\u30b7\u30f3\u30b0<span>(auto boxing)<\/span>\u3068\u3044\u3046\u4ed5\u7d44\u307f\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002\u30aa\u30fc\u30c8\u30dc\u30af\u30b7\u30f3\u30b0\u3067\u3001<span>int<\/span>\u3068<span>Integer<\/span>\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u307b\u307c\u540c\u3058\u3082\u306e\u3068\u3057\u3066\u6271\u3048\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067<span>int<\/span>\u3092\u4f7f\u3046\u6240\u3067\u306f<span>Integer<\/span>\u3092\u4f7f\u3048\u307e\u3059\u3057\u3001<span>Integer<\/span>\u3092\u4f7f\u3046\u6240\u3067\u306f<span>int<\/span>\u304c\u4f7f\u3048\u307e\u3059\u3002\u672c\u5f53\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u306f\u76f8\u5909\u308f\u3089\u305a<span>int<\/span>\u3068<span>Integer<\/span>\u306f\u5225\u7269\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u9055\u3044\u3092<span>Java<\/span>\u304c\u88cf\u3067\u81ea\u52d5\u7684\u306b\u5909\u63db\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">Integer intObj = Integer.valueOf(\"12345\"); \/\/ Integer\r\nint intPri = 65535; \/\/ int\r\n\r\nintPri = intObj; \/\/ \u2192 12345\u3001int\u306bInteger\u3092\u4ee3\u5165\u3067\u304d\u308b\r\nintPri = new Integer(\"65535\"); \/\/ \u2192 65535\u3001\u540c\u4e0a\r\nintObj = 12345; \/\/ \u2192 12345\u3001Integer\u306bint\u3092\u4ee3\u5165\u3067\u304d\u308b<\/pre>\n<p>\u3053\u308c\u3067<span>Java<\/span>\u306e\u9762\u5012\u306a\u90e8\u5206\u304c\u3042\u308b\u7a0b\u5ea6\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002\u3067\u3059\u304c\u3001\u524d\u8ff0\u306e\u3068\u304a\u308a<span>Integer<\/span>\u306f<span>null<\/span>\u3092\u8868\u305b\u307e\u3059\u304c\u3001<span>int<\/span>\u306f\u5fc5\u305a\u4f55\u304b\u306e\u6574\u6570\u306a\u306e\u3067\u3001<span>null<\/span>\u306b\u76f8\u5f53\u3059\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4e88\u671f\u305b\u306c\u3068\u3053\u308d\u3067<span>NullPointerException<\/span>\u304c\u767a\u751f\u3057\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u308c\u306f<span>2019<\/span>\u5e74\u306e<span>Java 11<\/span>\u306e\u6642\u70b9\u3067\u3082\u5909\u308f\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u30d7\u30ed\u30b0\u30e9\u30de\u304c\u6ce8\u610f\u3059\u308b\u304b\u3001<span>Optional<\/span>\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">class IntTest {\r\n\tstatic Integer returnInteger() {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tint i = returnInteger(); \/\/ \u2192 null\u3092int\u306b\u5909\u63db\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5b9f\u884c\u3059\u308b\u3068NullPointerException\u304c\u767a\u751f\u3059\u308b!!\r\n\t}\r\n}<\/pre>\n<h3><span id=\"-int-5\">\uff13-\uff14\uff0e\u3010\u5fdc\u7528\u3011\u7b26\u53f7\u306a\u3057<span>int<\/span>\u3068\u3057\u3066\u306e\u6271\u3044\u65b9<\/span><\/h3>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u305a\u3063\u3068\u3001<span>int<\/span>\u306f\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u304c\u3042\u308b<span>32<\/span>\u30d3\u30c3\u30c8\u306e\u6574\u6570\u3060\u3068\u304a\u4f1d\u3048\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u305d\u308c\u306f\u4eca\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u304c\u3001<span>Java 8<\/span>\u3067<span>int<\/span>\u3092\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066\u6271\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u304c<span>Integer<\/span>\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u3001<span>int<\/span>\u306e<span>32<\/span>\u30d3\u30c3\u30c8\u3092\u30d5\u30eb\u306b\u4f7f\u3063\u305f\u8a08\u7b97\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3067\u3059\u3002\u6bd4\u8f03\u3057\u3066\u3044\u308b\u306e\u306f\u540c\u3058<span>int<\/span>\u3067\u30d3\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u304c\u3001<span>compareUnsigned<\/span>\u3067\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u76ee\u3082\u542b\u3081\u305f\u6574\u6570\u3068\u3057\u3066\u6bd4\u8f03\u3057\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre class=\"prettyprint lang:default decode:true\">int i1 = Integer.MAX_VALUE; \/\/ \u2192 0b01111111111111111111111111111111\r\nint i2 = Integer.MIN_VALUE; \/\/ \u2192 0b10000000000000000000000000000000\r\n\r\nint cmp1 = Integer.compare(i1, i2);\r\nint cmp2 = Integer.compareUnsigned(i1, i2);\r\n\r\nSystem.out.println(cmp1); \/\/ \u2192 1(i1\u306e\u65b9\u304c\u5927\u304d\u3044)\u3001i1\u306f\u30d7\u30e9\u30b9\u306a\u306e\u3067i2\u3088\u308a\u3082\u5927\u304d\u3044\r\nSystem.out.println(cmp2); \/\/ \u2192 -1(i2\u306e\u65b9\u304c\u5927\u304d\u3044)\u300132\u30d3\u30c3\u30c8\u3092\u30d5\u30eb\u306b\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3001i2\u306e\u65b9\u304c\u5927\u304d\u3044\u3068\u5224\u65ad\u3055\u308c\u308b<\/pre>\n<p>Integer.\uff5e<span>Unsigned<\/span>\u7cfb\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u4ee5\u4e0b\u306e\u3082\u306e\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u8a73\u7d30\u306f\u3001<span>Javadoc<\/span>\u3092\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"attention a-1\">\n<p>Integer.toUnsignedString\uff1a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066\u6587\u5b57\u5217\u5316\u3059\u308b<\/p>\n<p>Integer.parseUnsignedInt\uff1a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066\u30d1\u30fc\u30b9\u3059\u308b<\/p>\n<p>Integer.toUnsignedLong\uff1a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066<span>long<\/span>\u306b\u5909\u63db\u3059\u308b<\/p>\n<p>Integer.divideUnsigned\uff1a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066\u5272\u308a\u7b97\u3059\u308b<\/p>\n<p>Integer.remainderUnsigned\uff1a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3068\u3057\u3066\u4f59\u308a\u3092\u6c42\u3081\u308b<\/p>\n<\/div>\n<h2><span id=\"i-2\">\uff14\uff0e\u307e\u3068\u3081<\/span><\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<span>Java<\/span>\u306e<span>int<\/span>\u306b\u3064\u3044\u3066\u304a\u4f1d\u3048\u3057\u3066\u304d\u307e\u3057\u305f\u3002<span>Java<\/span>\u306e<span>int<\/span>\u306f<span>32<\/span>\u30d3\u30c3\u30c8\u306e\u6574\u6570\u3067\u3001<span>\u00b121<\/span>\u5104\u304f\u3089\u3044\u307e\u3067\u306e\u5024\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<span>int<\/span>\u306f<span>Java<\/span>\u3067\u6574\u6570\u3092\u4f7f\u3046\u6642\u306e\u6a19\u6e96\u3068\u3082\u3044\u3048\u308b\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002<\/p>\n<p>Java\u3067\u306f\u3001\u6574\u6570\u3092\u8868\u73fe\u3059\u308b\u306b\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e<span>int<\/span>\u3068\u3001\u30af\u30e9\u30b9<span>(<\/span>\u53c2\u7167\u578b<span>)<\/span>\u3068\u3057\u3066\u306e<span>Integer<\/span>\u306e\u4e8c\u7a2e\u985e\u304c\u3042\u308a\u3001\u305d\u308c\u3089\u306f\u9055\u3046\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u306b\u306f\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002\u305f\u3060\u3001\u30aa\u30fc\u30c8\u30dc\u30af\u30b7\u30f3\u30b0\u306b\u3088\u308a\u9055\u3044\u304c\u898b\u3048\u306b\u304f\u304f\u306f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u6574\u6570\u306f\u3069\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u3082\u3042\u308b\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u3067\u3059\u306e\u3067\u3001<span>Java<\/span>\u3067\u6574\u6570\u306e\u4f7f\u3044\u65b9\u3092\u5b66\u3093\u3067\u304a\u3051\u3070\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3082\u305d\u3046\u5927\u304d\u306a\u9055\u3044\u306a\u304f\u4f7f\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u7279\u306b\u30d3\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u3068\u6570\u5024\u306e\u5bfe\u5fdc\u3092\u899a\u3048\u3066\u304a\u3051\u3070\u3001\u3044\u3056\u3068\u3044\u3046\u6642\u306b\u5f79\u306b\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u308c\u306b\u3001\u30d3\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u304c\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u308c\u3070\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u4e16\u754c\u306b\u3088\u308a\u6df1\u304f\u5165\u308a\u8fbc\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u6a5f\u306b\u3001\u9811\u5f35\u3063\u3066\u307f\u307e\u305b\u3093\u304b<span>?<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u306eint\u306f\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u4e00\u3064\u3067\u300132\u30d3\u30c3\u30c8\u306e\u7bc4\u56f2\u3067\u6574\u6570\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002int\u3067\u306f\u3001\u304a\u3088\u305d\u00b121\u51045\u5343\u4e07\u306e\u5024\u3092\u8868\u73fe\u3067\u304d\u307e\u3059\u3002 Java\u3067\u6574\u6570\u3092\u6271\u3046\u6642\u306f\u3001\u666e\u901a\u306fint\u3092\u4f7f\u3044\u307e\u3059\u3002int\u3092\u4f7f\u308f\u306a\u3044Java\u306e\u30d7\u30ed\u30b0\u30e9 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":804,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/posts\/1496"}],"collection":[{"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/comments?post=1496"}],"version-history":[{"count":8,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/posts\/1496\/revisions"}],"predecessor-version":[{"id":5789,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/posts\/1496\/revisions\/5789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/media\/804"}],"wp:attachment":[{"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/media?parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bold.ne.jp\/engineer-club\/wp-json\/wp\/v2\/categories?post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}