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
What is the difference between notify and notifyall method?
Can you declare the main method as final?
What is a java lambda expression?
What is string builder?
What is function and method in java?
Can I use % with real numbers?
Explain the difference between the public, private, final, protected, and default modifiers?
Explain oops concepts in detail?
What is the definition of tree ?
What about method local inner classes or local inner classes in java?
What about static nested classes in java?
Does java list allow null?
What is meant by oops concept in java?
What is string array?
What is a flag and how does it work?