In
java , When ever you creates string litelars , they will be created in String pool ( pool memory).
s="abc"; creates one object in pool memory
and String s=new String("abc"); creates two objects. I hope one in pool and other one in non pool .
Pls correct me if am wrong.