I have two local variables in a method as follows,

```
int i=10;
String test="test";

```

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?