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

Answer Posted / koneti

yes, two Objects are created one Object is string constent
pool and second one is in heap memory

Is This Answer Correct ?    40 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is strings in java?

782


Tell me a few examples of final classes defined in Java API?

761


Do we need to manually write Copy Constructor?

776


How does list work in java?

682


What is a numeric digit?

759


How do you find the maximum number from an array without comparing and sorting?

852


Explain parallel processing in java8?

876


How do generics work in java?

684


What is javac used for?

685


What is a numeric format?

767


What are the various access specifiers in java?

742


What are autoboxing and unboxing? When does it occur?

692


How do generics work?

703


Explain about varargs in java?

864


What is balanced tree in java?

694