How many objects are created when we create String class
object using new operator?

Answer Posted / naveen

Yes,two Objects will be created, First in Constant Pool and
second Object in Heap area of the Memory

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of map in java?

508


What does ide stand for?

511


What are the fileinputstream and fileoutputstream?

565


What is the exact difference in between unicast and multicast object? Where we will use?

557


What is anagram in java?

512






Can we call virtual funciton in a constructor ?

1770


What is byte data type?

546


Can private class be extended java?

561


What are the important features of Java 9 release?

527


How can you make a class serializable in java?

563


How do I compare two strings in word in java?

534


make a method which any number and any type of argument and print sum of that arguments.....

1374


What is the main purpose of serialization in java?

524


How do I enable java in safari?

542


How do you take thread dump in java?

548