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


Please Help Members By Posting Answers For Below Questions

Describe the syntax of multiple inheritance? When do we use such an inheritance?

588


What are the differences between this and super keyword?

534


What is the difference between superclass and subclass?

548


Is it possible to use string in the switch case?

556


Can string be considered as a keyword?

574






How to calculate the length of a singly linked list in java?

584


What is == in java?

570


What is boolean example?

529


What are the advantages of assembly language?

503


explain multi-threading in java?

561


What’s a deadlock?

612


Is null an object java?

540


What are the different ways of implementing thread? Which one is more advantageous?

540


Define inheritance with reference to java.

585


Explain illegalmonitorstateexception and when it will be thrown?

626