ProAnswers.org

String s=new String("Welcome"); how many objects are created in this time?

Two objects, one in string constant pool and other in non-pool(heap).