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
Is it possible to use string in the switch case?
What is externalizable?
Which is better list or arraylist in java?
What are encapsulation, inheritance and polymorphism?
Can we serialize arraylist in java?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Explain about version control?
What is the use of parse function in java?
What is the purpose of a parameter?
How to create packages in java?
In the below example, how many string objects are created?
What is the base class in java from which all classes are derived?
What is the difference between Error, defect,fault, failure and mistake?
What is difference between equals and hashcode method?