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
What are packages in java?
Difference between collection, collection and collections in java?
What are the two environment variables that must be set in order to run any java programs?
Can java cast null?
Can you extend singleton class?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Is a method a procedure?
what is comparable and comparator interface?
what is the difference between the methods sleep() and wait()? : Java thread
When do we use hashset over treeset?
Why do we use string?
What are nested classes in java?
What are the pillars of java?
In the below example, how many string objects are created?
Is there a jre for java 11?