In the following code, is there memory allocated for the string:
public void foo {
String s;
}
public void foo {
String s="";
}
public void foo {
String s = new String();
}
in c, int i; doesnt allocate any memory, I am wondering if this is
similar in Java.