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
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What are the differences between this and super keyword?
What is the difference between superclass and subclass?
Is it possible to use string in the switch case?
Can string be considered as a keyword?
How to calculate the length of a singly linked list in java?
What is == in java?
What is boolean example?
What are the advantages of assembly language?
explain multi-threading in java?
What’s a deadlock?
Is null an object java?
What are the different ways of implementing thread? Which one is more advantageous?
Define inheritance with reference to java.
Explain illegalmonitorstateexception and when it will be thrown?