{"id":591,"date":"2023-05-17T06:49:10","date_gmt":"2022-09-03T13:16:45","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/"},"modified":"2025-08-01T00:52:55","modified_gmt":"2025-07-31T15:52:55","slug":"java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/","title":{"rendered":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09"},"content":{"rendered":"<p>\u4ee5\u524d\u306e\u6295\u7a3f\u3067\u306f\u3001\u91cd\u8981\u306aJava SE 8\u306e\u9762\u63a5\u306e\u8cea\u554f\u3068\u56de\u7b54\u306b\u3064\u3044\u3066\u8a71\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001\u3055\u3089\u306bJava SE 8\u306e\u9762\u63a5\u306e\u8cea\u554f\u3068\u56de\u7b54\u306b\u3064\u3044\u3066\u8b70\u8ad6\u3057\u307e\u3059\u3002\u3053\u306e\u6295\u7a3f\u3092\u8aad\u3080\u524d\u306b\u3001\u4ee5\u4e0b\u306eURL\u304b\u3089\u79c1\u306e\u4ee5\u524d\u306e\u6295\u7a3f\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff1a\u300cJava SE 8\u9762\u63a5\u306e\u8cea\u554f\uff08\u30d1\u30fc\u30c81\uff09\u300d\u3002<\/p>\n<h3>Java SE 8\u306e\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u8cea\u554f<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java SE 8\u306b\u304a\u3051\u308bInternal Iteration\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>External Iteration\u3068Internal Iteration\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>External Iteration\u306e\u4e3b\u306a\u6b20\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Internal Iteration\u304cExternal Iteration\u306b\u6bd4\u3079\u3066\u6301\u3064\u4e3b\u306a\u5229\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Internal Iteration\u304cExternal Iteration\u306b\u6bd4\u3079\u3066\u6301\u3064\u4e3b\u306a\u6b20\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>External Iteration\u304cInternal Iteration\u306b\u6bd4\u3079\u3066\u6301\u3064\u4e3b\u306a\u5229\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u3044\u3064Internal Iteration\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\u3044\u3064External Iteration\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java 8\u306eStream API\u306eIntermediate Operations\u3068Terminal Operations\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f\u53ef\u80fd\u306a\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306b\u63d0\u4f9b\u3057\u307e\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f\u306a\u305cJava 8\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f\u306a\u305cJava 8\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u53e4\u3044Java Date API\u306e\u554f\u984c\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002Java 8\u306eDate and Time API\u3068Joda Time API\u306b\u6bd4\u3079\u3066Java 8\u306eDate and Time API\u306e\u5229\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java SE 8\u3067\u306a\u305c\u65b0\u3057\u3044Date and Time API\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304b\uff1fJava SE 8\u306eDate and Time API\u306f\u53e4\u3044Java Date API\u306e\u554f\u984c\u3092\u3069\u306e\u3088\u3046\u306b\u89e3\u6c7a\u3057\u307e\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Java\u306e\u53e4\u3044Java Date API\u3068Java 8\u306eDate and Time API\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u591a\u91cd\u7d99\u627f\u3068\u306f\u4f55\u3067\u3059\u304b\uff1fJava 8\u306f\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u591a\u91cd\u7d99\u627f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30c0\u30a4\u30e4\u30e2\u30f3\u30c9\u554f\u984c\u3068\u306f\u4f55\u3067\u3059\u304b\uff1fJava 8\u306f\u3053\u306e\u554f\u984c\u3092\u3069\u306e\u3088\u3046\u306b\u89e3\u6c7a\u3057\u307e\u3059\u304b\uff1f<\/ol>\n<h3>Java SE 8 \u306e \u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u306e \u8cea\u554f\u3068\u56de\u7b54<\/h3>\n<h3>Java SE 8\u306b\u304a\u3051\u308b\u5185\u90e8\u53cd\u5fa9\u51e6\u7406\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>Java 8\u4ee5\u524d\u306f\u3001\u79c1\u305f\u3061\u306f\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u6982\u5ff5\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002Java 8\u3067\u306f\u3001\u300c\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u3044\u3046\u65b0\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002Java 8\u4ee5\u524d\u3001Java\u8a00\u8a9e\u3067\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3084\u914d\u5217\u306a\u3069\u306e\u96c6\u7d04\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8981\u7d20\u3092\u53cd\u5fa9\u3059\u308b\u305f\u3081\u306b\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u307f\u304c\u5b58\u5728\u3057\u307e\u3057\u305f\u3002\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u300cJava API\u306b\u3088\u3063\u3066\u5185\u90e8\u7684\u306b\u96c6\u7d04\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8981\u7d20\u3092\u4e00\u3064\u305a\u3064\u53cd\u5fa9\u3059\u308b\u3053\u3068\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002Java\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5916\u90e8\u7684\u306b\u53cd\u5fa9\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001Java API\u306b\u3053\u306e\u30b8\u30e7\u30d6\u3092\u5185\u90e8\u7684\u306b\u884c\u3063\u3066\u3082\u3089\u3046\u306e\u3067\u3059\u3002<\/p>\n<h3>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f (Gaihatsu iter\u0113shon to naihatsu iter\u0113shon no chigai wa nan desu ka?)<\/h3>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th><a href=\"http:\/\/S.No\">S.No<\/a>.<\/th>\n<th>External Iteration<\/th>\n<th>Internal Iteration<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>Available before Java 8 too.<\/td>\n<td>It is introduced in Java SE 8<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>Iterating an Aggregated Object elements externally.<\/td>\n<td>Iterating an Aggregated Object elements internally (background).<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>Iterate elements by using for-each loop and Iterators like Enumeration, Iterator, ListIterator.<\/td>\n<td>Iterate elements by using Java API like \u201cforEach\u201d method.<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>Iterating elements in Sequential and In-Order only.<\/td>\n<td>Not required to iterate elements in Sequential order.<\/td>\n<\/tr>\n<tr>\n<td>5.<\/td>\n<td>It follows OOP approach that is Imperative Style.<\/td>\n<td>It follows Functional Programming approach that is Declarative Style.<\/td>\n<\/tr>\n<tr>\n<td>6.<\/td>\n<td>It does NOT separate responsibilities properly that is, it defines both \u201cWhat is to be done\u201d and \u201cHow it is to be done\u201d.<\/td>\n<td>It defines only \u201cWhat is to be done\u201d. No need to worry about \u201cHow it is to be done\u201d. Java API takes care about \u201cHow to do\u201d.<\/td>\n<\/tr>\n<tr>\n<td>7.<\/td>\n<td>Less Readable Code.<\/td>\n<td>More Readable code.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u306a\u6b20\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059:<\/p>\n<ul class=\"post-ul\">\n<li>We need to write code in Imperative Style.<\/li>\n<li>There is no clear separation of Responsibilities. Tightly-Coupling between \u201cWhat is to be done\u201d and \u201cHow it is to be done\u201d code.<\/li>\n<li>Less Readable Code.<\/li>\n<li>More Verbose and Boilerplate code.<\/li>\n<li>We have to iterate elements in Sequential order only.<\/li>\n<li>It does not support Concurrency and Parallelism properly.<\/li>\n<\/ul>\n<h3>\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u306a\u5229\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u6bd4\u3079\u308b\u3068\u3001\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059:<\/p>\n<ul class=\"post-ul\">\n<li>As it follows Functional Programming style, we can write Declarative Code.<\/li>\n<li>More Readable and concise code.<\/li>\n<li>Avoids writing Verbose and Boilerplate code<\/li>\n<li>No need to iterate elements in Sequential order.<\/li>\n<li>It supports Concurrency and Parallelism properly.<\/li>\n<li>We can write Parallel code to improve application performance.<\/li>\n<li>Clear separation of Responsibilities. Loosely-Coupling between \u201cWhat is to be done\u201d and \u201cHow it is to be done\u201d code.<\/li>\n<li>We need to write code only about \u201cWhat is to be done\u201d and Java API takes care about \u201cHow it is to be done\u201d code.<\/li>\n<\/ul>\n<h3>\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u306a\u6b20\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f (Naibu itere\u0304shon no hon&#8217;na ketten wa nanidesu ka?)<\/h3>\n<p>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u6bd4\u3079\u3066\u3001\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u4e3b\u306a\u6b20\u70b9\u304c\u4e00\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>In Internal Iteration, as Java API takes care about Iterating elements internally, we do NOT have control over Iteration.<\/li>\n<\/ul>\n<h3>\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u306a\u5229\u70b9\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u6bd4\u3079\u3066\u3001\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u306f1\u3064\u306e\u4e3b\u8981\u306a\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>In External Iteration, as Java API does NOT take care about Iterating elements, we have much control over Iteration.<\/li>\n<\/ul>\n<h3>\u3044\u3064\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\u3044\u3064\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f (Itsu naibu itere\u0304shon o shiyo suru hitsuy\u014d ga arimasu ka? Itsu gaibu itere\u0304shon o shiyo suru hitsuy\u014d ga arimasu ka?)<\/h3>\n<p>\u5185\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u307e\u305f\u306f\u5916\u90e8\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u72b6\u6cc1\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>When we need more control over Iteration, we can use External Iteration.<\/li>\n<li>When we do NOT need more control over Iteration, we can use Internal Iteration.<\/li>\n<li>When we need to develop Highly Concurrency and Parallel applications and we , we should use Internal Iteration.<\/li>\n<\/ul>\n<h3>Java 8\u306eStream API\u306e\u4e2d\u9593\u64cd\u4f5c\u3068\u7d42\u7aef\u64cd\u4f5c\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th><a href=\"http:\/\/S.No\">S.No<\/a>.<\/th>\n<th>Stream Intermediate Operations<\/th>\n<th>Stream Terminal Operations<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>Stream Intermediate operations are not evaluated until we chain it with Stream Terminal Operation.<\/td>\n<td>Stream Terminal Operations are evaluated on it\u2019s own. No need other operations help.<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>The output of Intermediate Operations is another Stream.<\/td>\n<td>The output of Intermediate Operations is Not a Stream. Something else other than a Stream.<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>Intermediate Operations are evaluated Lazily.<\/td>\n<td>Terminal Operations are evaluated Eagerly.<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>We can chain any number of Stream Intermediate Operations.<\/td>\n<td>We can NOT chain Stream Terminal Operations.<\/td>\n<\/tr>\n<tr>\n<td>5.<\/td>\n<td>We can use any number of Stream Intermediate Operations per Statement.<\/td>\n<td>We can use only one Stream Terminal Operation per Statement.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>Java\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f\u53ef\u80fd\u306a\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306b\u63d0\u4f9b\u3057\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u4ee5\u4e0b\u306f\u3001Java 7\u4ee5\u524d\u3067\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001Java 8\u4ee5\u964d\u3067\u306f\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002Java SE 8\u3067\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b0\u3057\u3044\u6982\u5ff5\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5185\u3067\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Default Methods<\/li>\n<li>Static Methods<\/li>\n<\/ul>\n<h3>\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f\u306a\u305cJava 8\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u300cdefault\u300d\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u5b9f\u88c5\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u3053\u308c\u306fJava SE 8\u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u6a5f\u80fd\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u306a\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>It allow us to provide method\u2019s implementation in Interfaces.<\/li>\n<li>To add new Functionality to Interface without breaking the Classes which implement that Interface.<\/li>\n<li>To provide elegant Backwards Compatibility Feature.<\/li>\n<li>To ease of extend the existing Functionality.<\/li>\n<li>To ease of Maintain the existing Functionality.<\/li>\n<\/ul>\n<h3>\u300cStatic Method\u300d\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f\u306a\u305cJava 8\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306fStatic\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30af\u30e9\u30b9\uff08\u307e\u305f\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30e1\u30bd\u30c3\u30c9\u307e\u305f\u306f\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6b21\u306e\u7406\u7531\u304b\u3089\u3001\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>We can keep Helper or Utility methods specific to an interface in the same interface rather than in a separate Utility class.<\/li>\n<li>We do not need separate Utility Classes like Collections, Arrays etc to keep Utility methods.<\/li>\n<li>Clear separation of Responsibilities. That is we do not need one Utility class to keep all Utility methods of Collection API like Collections etc.<\/li>\n<li>Easy to extend the API.<\/li>\n<li>Easy to Maintain the API.<\/li>\n<\/ul>\n<h3>\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Functional Programming<\/th>\n<th>OOP<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Does not exist State<\/td>\n<td>Exists State<\/td>\n<\/tr>\n<tr>\n<td>Uses Immutable data<\/td>\n<td>Uses Mutable data<\/td>\n<\/tr>\n<tr>\n<td>It follows Declarative Programming Model<\/td>\n<td>It follows Imperative Programming Model<\/td>\n<\/tr>\n<tr>\n<td>Stateless Programming Model<\/td>\n<td>Stateful Programming Model<\/td>\n<\/tr>\n<tr>\n<td>Main Fcous on: \u201cWhat you are doing\u201d<\/td>\n<td>Main focus on \u201cHow you are doing\u201d<\/td>\n<\/tr>\n<tr>\n<td>Good for Parallel (Concurrency) Programming<\/td>\n<td>Poor for Parallel (Concurrency) Programming<\/td>\n<\/tr>\n<tr>\n<td>Good for BigData processing and analysis<\/td>\n<td>NOT Good for BigData processing and analysis<\/td>\n<\/tr>\n<tr>\n<td>Supports pure Encapsulation<\/td>\n<td>It breaks Encapsulation concept<\/td>\n<\/tr>\n<tr>\n<td>Functions with No-Side Effects<\/td>\n<td>Methods with Side Effects<\/td>\n<\/tr>\n<tr>\n<td>Functions are first-class citizens<\/td>\n<td>Objects are first-class citizens<\/td>\n<\/tr>\n<tr>\n<td>Primary Manipulation Unit is \u201cFunction\u201d<\/td>\n<td>Primary Manipulation Unit is Objects(Instances of Classes)<\/td>\n<\/tr>\n<tr>\n<td>Flow Controls: Function calls, Function Calls with Recursion<\/td>\n<td>Flow Controls: Loops, Conditional Statements<\/td>\n<\/tr>\n<tr>\n<td>It uses \u201cRecursion\u201d concept to iterate Collection Data.<\/td>\n<td>It uses \u201cLoop\u201d concept to iterate Collection Data. For example:-For-each loop in Java<\/td>\n<\/tr>\n<tr>\n<td>Order of execution is less importance.<\/td>\n<td>Order of execution is must and very important.<\/td>\n<\/tr>\n<tr>\n<td>Supports both \u201cAbstraction over Data\u201d and \u201cAbstraction over Behavior\u201d.<\/td>\n<td>Supports only \u201cAbstraction over Data\u201d.<\/td>\n<\/tr>\n<tr>\n<td>We use FP when we have few Things with more operations.<\/td>\n<td>We use OOP when we have few Operations with more Things. For example: Things are classes and Operations are Methods in Java.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u306f\u3001FP\u3001IP\u3001\u304a\u3088\u3073OOP\u306e\u6bd4\u8f03\u306b\u95a2\u3059\u308b\u8a73\u7d30\u306a\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u524d\u306e\u6295\u7a3f\u300cFP\u3001OOP\uff08IP\uff09\u306e\u6bd4\u8f03\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u53e4\u3044Java Date API\u306e\u554f\u984c\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001Java 8\u306eDate and Time API\u304c\u53e4\u3044Date API\u3068Joda Time API\u306b\u6bd4\u3079\u3066\u3069\u306e\u3088\u3046\u306a\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3>\n<p>Java\u306e\u53e4\u3044\u65e5\u4ed8API\u306f\u3001Java SE 8\u3088\u308a\u524d\u306b\u5229\u7528\u53ef\u80fd\u306aDate\u3001Calendar\u3001SimpleDateFormat\u306a\u3069\u306e\u65e5\u4ed8API\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002Java\u306e\u53e4\u3044\u65e5\u4ed8API\u306f\u3001Java 8\u306e\u65e5\u4ed8\u304a\u3088\u3073\u6642\u523bAPI\u3084Joda Time API\u3068\u6bd4\u8f03\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u554f\u984c\u3084\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Most of the API is deprecated.<\/li>\n<li>Less Readability.<\/li>\n<li>java.util.Date is Mutable and not Thread-Safe.<\/li>\n<li>java.text.SimpleDateFormat is not Thread-Safe.<\/li>\n<li>Less Performance.<\/li>\n<\/ul>\n<p>Java SE 8\u306e\u65e5\u4ed8\u3068\u6642\u523b\u306eAPI\u306f\u3001Java\u306e\u65e7\u65e5\u4ed8API\u3068\u6bd4\u3079\u3066\u4ee5\u4e0b\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Very simple to use.<\/li>\n<li>Human Readable Syntax that is More Readability.<\/li>\n<li>All API is Thread-Safe.<\/li>\n<li>Better Performance.<\/li>\n<\/ul>\n<h3>\u306a\u305c\u79c1\u305f\u3061\u306fJava SE 8\u3067\u65b0\u3057\u3044\u65e5\u4ed8\u3068\u6642\u523b\u306eAPI\u304c\u5fc5\u8981\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1fJava SE 8\u306e\u65e5\u4ed8\u3068\u6642\u523b\u306eAPI\u306f\u3001\u65e7Java\u306e\u65e5\u4ed8API\u306e\u554f\u984c\u3092\u3069\u306e\u3088\u3046\u306b\u89e3\u6c7a\u3057\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/h3>\n<p>\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306e\u9ad8\u3044Java\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u306f\u3001Java 8\u306e\u65e5\u4ed8\u3068\u6642\u523bAPI\u304c\u5fc5\u8981\u3067\u3059\u3002Java 8\u306e\u65e5\u4ed8\u3068\u6642\u523bAPI\u306f\u3001\u3059\u3079\u3066\u306eJava\u306e\u53e4\u3044\u65e5\u4ed8API\u306e\u554f\u984c\u3092\u3001\u30a4\u30df\u30e5\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u3068\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306e\u539f\u5247\u306b\u5f93\u3063\u3066\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>Java\u306e\u53e4\u3044Java Date API\u3068Java 8\u306e\u65e5\u4ed8\u3068\u6642\u523bAPI\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>Java\u306e\u53e4\u3044Java Date API\u3068Java 8\u306eDate and Time API\u306e\u9055\u3044:<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th><a href=\"http:\/\/S.No\">S.No<\/a>.<\/th>\n<th>Java\u2019s OLD Java Date API<\/th>\n<th>Java 8\u2019s Date and Time API<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>Available before Java 8 too.<\/td>\n<td>It is introduced in Java SE 8<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>Not Thread Safe.<\/td>\n<td>Thread Safe.<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>Mutable API.<\/td>\n<td>Immutable API.<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>Less Performance.<\/td>\n<td>Better Performance.<\/td>\n<\/tr>\n<tr>\n<td>5.<\/td>\n<td>Less Readability.<\/td>\n<td>More Readability.<\/td>\n<\/tr>\n<tr>\n<td>6.<\/td>\n<td>It\u2019s not recommended to use as its deprecated.<\/td>\n<td>It\u2019s always recommended to use.<\/td>\n<\/tr>\n<tr>\n<td>7.<\/td>\n<td>Not Extendable.<\/td>\n<td>Easy to Extend.<\/td>\n<\/tr>\n<tr>\n<td>8.<\/td>\n<td>It defines months values from 0 to 11, that is January = 0.<\/td>\n<td>It defines months values from 1 to 12, that is January = 1.<\/td>\n<\/tr>\n<tr>\n<td>9.<\/td>\n<td>It\u2019s an old API.<\/td>\n<td>It\u2019s a new API.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>Multiple Inheritance\u3068\u306f\u4f55\u3067\u3059\u304b\uff1fJava 8\u306f\u3069\u306e\u3088\u3046\u306bMultiple Inheritance\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u8907\u6570\u306e\u7d99\u627f\u3068\u306f\u3001\u30af\u30e9\u30b9\u304c\u8907\u6570\u306e\u89aa\u30af\u30e9\u30b9\u304b\u3089\u7279\u6027\u3084\u6a5f\u80fd\u3092\u53d7\u3051\u7d99\u3050\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001Java 7\u4ee5\u524d\u3067\u306f\u3001\u8907\u6570\u306e\u7d99\u627f\u306f\u4e0d\u53ef\u80fd\u3067\u3057\u305f\u3002\u306a\u305c\u306a\u3089\u3001Java\u306f\u300c\u30af\u30e9\u30b9\u306f\u305f\u3060\u4e00\u3064\u306e\u30af\u30e9\u30b9\u307e\u305f\u306f\u62bd\u8c61\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3059\u3079\u304d\u300d\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3092\u5f93\u3063\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3057\u304b\u3057\u3001Java\u3067\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304b\u3089\u306e\u5b9f\u88c5\u7d99\u627f\u3092\u884c\u3046\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3057\u3001Java 8\u3067\u306f\u300c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u300d\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u305f\u306a\u6a5f\u80fd\u3067\u3042\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001Java 8\u3067\u306f\u3044\u304f\u3064\u304b\u306e\u5236\u9650\u4ed8\u304d\u3067\u8907\u6570\u306e\u7d99\u627f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306b\u304a\u3051\u308b\u30c0\u30a4\u30e4\u30e2\u30f3\u30c9\u554f\u984c\u3068\u306f\u4f55\u3067\u3059\u304b\uff1fJava 8\u306f\u3053\u306e\u554f\u984c\u3092\u3069\u306e\u3088\u3046\u306b\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf746\/50-0.png\" alt=\"diamond problem interface default methods\" \/><\/div>\n<pre class=\"post-pre\"><code>interface A {\r\n\tdefault void display() {\r\n\t\tSystem.out.println(\"A\");\r\n\t}\r\n}\r\n\r\ninterface B extends A {\r\n\tdefault void display() {\r\n\t\tSystem.out.println(\"B\");\r\n\t}\r\n}\r\n\r\ninterface C extends A {\r\n\tdefault void display() {\r\n\t\tSystem.out.println(\"C\");\r\n\t}\r\n}\r\n\r\nclass D implements B, C {\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u306f\u3001\u30af\u30e9\u30b9D\u306f\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u306edisplay\u304c\u30af\u30e9\u30b9C\u3068B\u304b\u3089\u7d99\u627f\u3055\u308c\u3066\u304a\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc()\u3068()\u3092\u6301\u3064\u91cd\u8907\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u3059\u300d\u3068\u3044\u3046\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001Java\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u30af\u30e9\u30b9D\u3067\u3069\u306edisplay()\u3092\u4f7f\u7528\u3059\u308b\u304b\u6df7\u4e71\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u30af\u30e9\u30b9D\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9B\u3068C\u306e\u4e21\u65b9\u304b\u3089display()\u30e1\u30bd\u30c3\u30c9\u3092\u7d99\u627f\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001Java 8\u3067\u306f\u4ee5\u4e0b\u306e\u89e3\u6c7a\u7b56\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>class D implements B, C {\r\n\r\n\t@Override\r\n\tpublic void display() {\r\n\t\tB.super.display();\r\n\t}\r\n\t\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306eB.super.display();\u306f\u3001\u3053\u306e\u30c0\u30a4\u30e4\u30e2\u30f3\u30c9\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3057\u307e\u3059\u3002C\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u3001C.super.display();\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304cJava 8\u306e\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u306e\u554f\u984c\u306e\u3059\u3079\u3066\u3067\u3059\u3002\u4eca\u5f8c\u306e\u6295\u7a3f\u3067\u3055\u3089\u306bJava SE 8\u306e\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u306e\u554f\u984c\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\u79c1\u306e\u6295\u7a3f\u304c\u6c17\u306b\u5165\u3063\u305f\u308a\u3001\u554f\u984c\u3084\u63d0\u6848\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u6295\u7a3f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u306e\u6295\u7a3f\u3067\u306f\u3001\u91cd\u8981\u306aJava SE 8\u306e\u9762\u63a5\u306e\u8cea\u554f\u3068\u56de\u7b54\u306b\u3064\u3044\u3066\u8a71\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001\u3055\u3089\u306bJava SE 8\u306e\u9762\u63a5\u306e\u8cea\u554f\u3068\u56de\u7b54\u306b\u3064\u3044\u3066\u8b70\u8ad6\u3057\u307e\u3059\u3002\u3053\u306e\u6295\u7a3f\u3092\u8aad\u3080\u524d\u306b\u3001\u4ee5\u4e0b\u306eURL\u304b\u3089\u79c1\u306e\u4ee5\u524d\u306e\u6295\u7a3f\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff1a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-591","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 SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\" \/>\n<meta property=\"og:description\" content=\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-03T13:16:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T15:52:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf746\/50-0.png\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\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=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"25\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-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/\",\"name\":\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-09-03T13:16:45+00:00\",\"dateModified\":\"2025-07-31T15:52:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\"}]},{\"@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\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09 - Blog - Silicon Cloud","description":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\/","og_locale":"ja_JP","og_type":"article","og_title":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09","og_description":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-09-03T13:16:45+00:00","article_modified_time":"2025-07-31T15:52:55+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf746\/50-0.png"}],"author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"25\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/","name":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-09-03T13:16:45+00:00","dateModified":"2025-07-31T15:52:55+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09\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-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java SE 8\u306e\u9762\u63a5\u8cea\u554f\u3068\u56de\u7b54\uff08\u30d1\u30fc\u30c82\uff09"}]},{"@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\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-se-8%e3%81%ae%e9%9d%a2%e6%8e%a5%e8%b3%aa%e5%95%8f%e3%81%a8%e5%9b%9e%e7%ad%94%ef%bc%88%e3%83%91%e3%83%bc%e3%83%882%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/591","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"predecessor-version":[{"id":42544,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/591\/revisions\/42544"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}