First i got a doubt that, when I create a string as
String s = new String("Stack");
whether "Stack"
is saved in String Constant pool or not?
but this post : what happens with new String("") in String Constant pool tell that it is not.
but according to answers of this post : where do actual parameters in java store tell that it is present in Constant pool.
Please give a clarification on this.