<?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>機能的に同じオブジェクトを、必要になるごとに再生成するのは避ける。 よくない例 極端にだめな例としては以下の様なコードがある。 // だめな例 String s = new String(&quot;stringee&quot;); &quot;stringee&quot; 自身が String オブジェクトであり、String コンストラクタで生成されるオブジェクトと同様の機能を持つ。 そのため、これは二重にオブジェクトを生成していることになる。 正しくは以下のようにする。 // よい例 String s = &quot;stinggette&quot; 言語仕様上、同じ内容の文字列リテラルで生成されるインスタンスは再利用することが保証されている（同…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhjm333.hatenablog.com%2Fentry%2F2015%2F08%2F10%2F201927&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>2015-08-10 20:19:27</published>
  <title>【Effective Java】項目５：不必要なオブジェクトの生成を避ける</title>
  <type>rich</type>
  <url>https://hjm333.hatenablog.com/entry/2015/08/10/201927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
