title: Scala: accessing java primitives done directly or via a wrapper?
body: <p>I know that you can access java primitives directly from Scala </p>
  
  <pre><code>val javaDouble = new java.lang.Double(1.0)
  </code></pre>
  
  <p>Does this mean that we are accessing the primitives <strong>via a wrapper</strong> or <strong>directly</strong>? The syntax <code>new java.lang.Double(1.0)</code> looks like creating a new object, hence there is a wrapper which gives us the access to java primitives. If this is true, I wonder how much extra memory footprint and computation does it cost. </p>