Local variable of type string is stored on stack or heap?
<p>I have two local variables  in a method as follows,</p>

<pre><code>int i=10;
String test="test";
</code></pre>

<p>As far as i know as these variables are local to only a specfic method,these should be stored on a stack,will the string type is also stored on a stack?</p>
