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
how to create constants in java?
How can we pass argument to a function by reference instead of pass by value?
What is a jit compiler?
How to sort a collection of custom Objects in Java?
Write a program to solve producer consumer problem in java?
What function extracts specified characters from a string?
Why are global variables used?
What causes memory leak in java?
Why hashmap is used in java?
How do you calculate square roots?
What is the maximum size of list in java?
Explain working of call by reference function invoking.
Can constructor be inherited?
How do I stop concurrentmodificationexception?
What is function and method in java?