<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hjm333</author_name>
  <author_url>https://blog.hatena.ne.jp/hjm333/</author_url>
  <blog_title>The King's Museum</blog_title>
  <blog_url>https://hjm333.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Effective Java</anon>
  </categories>
  <description>ジェネリックスと配列 前回の記事 ではジェネリックス型の不変、共変、反変について説明しました。 今回はジェネリクス型のリスト（List&lt;E&gt;）と配列の性質の違いについて説明します。 前回も説明したように、Java のジェネリックス型は不変である一方、配列は共変です。 List&lt;Object&gt; objectList = new ArrayList&lt;String&gt;(); // =&gt; ジェネリックス型は不変なのでコンパイルエラー Object[] objectArray = new String[1]; // =&gt; 配列は共変なのでコンパイル可能 配列の方はコンパイル可能である一方、共変であるという…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhjm333.hatenablog.com%2Fentry%2F2016%2F02%2F11%2F111718&quot; title=&quot;【Effective Java】項目２５：配列よりリストを選ぶ - The King&amp;#39;s Museum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-11 11:17:18</published>
  <title>【Effective Java】項目２５：配列よりリストを選ぶ</title>
  <type>rich</type>
  <url>https://hjm333.hatenablog.com/entry/2016/02/11/111718</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
