<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yyama1556</author_name>
  <author_url>https://blog.hatena.ne.jp/yyama1556/</author_url>
  <blog_title>山崎屋の技術メモ</blog_title>
  <blog_url>https://www.shookuro.com/</blog_url>
  <categories>
    <anon>Java Tips</anon>
  </categories>
  <description>Java でメソッドを呼び出すときの引数についてのお話です。今回は参照型編。プリミティブ型（基本型）の記事はこちら。よく「Java ではすべて値渡し」って説明を初心者にしている人を見ます。決して間違いではないのですが、ちょっと不親切な気がします。 丁寧に「参照の値渡し」と教えてあげましょう。 プリミティブ型と参照型 あくまでイメージですが、プリミティブ型の変数は値そのものを保持しています。「int i = 3;」となっていた場合、変数 i には 3 が格納されています。一方、参照型はオブジェクトそのものではなく、オブジェクトが存在する場所（アドレス）を保持しています。「String s = &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shookuro.com%2Fentry%2F2013%2F02%2F08%2F062025&quot; title=&quot;Java の引数、参照型は「参照の値渡し」 - 山崎屋の技術メモ&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>http://ecx.images-amazon.com/images/I/51GUjKEYBkL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-14 06:20:25</published>
  <title>Java の引数、参照型は「参照の値渡し」</title>
  <type>rich</type>
  <url>https://www.shookuro.com/entry/2013/02/08/062025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
