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

Which collections are thread safe in java?

473


Can we overload run() method in java?

591


How can we find the actual size of an object on the heap?

800


What checkbox method allows you to tell if a checkbox is checked?

531


What is percentage in java?

568






Does treeset use compareto?

536


What is meant by string is immutable?

515


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

601


What do you understand by copy constructor in java?

488


What is ternary operator?

561


Is math an abstract class in java?

531


How to use arraylist in java netbeans?

504


Which category the java thread do fall in?

563


What is incompatible types in java?

533


Is alive in java?

502