How many objects are created when we create String class
object using new operator?

Answer Posted / shalini

using new operator, we can create same object 'n' no of
times of the same string class coz jvm would never verify
for the existing object wenever we create the object using
new operator

Is This Answer Correct ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy programming?

569


What is ternary operator? Give an example.

603


does java support pointers?

567


Can size_t be negative?

619


Define how objects are stored in java?

567






How to perform binary search in java?

574


What is a nonetype?

565


What is difference between path and classpath?

566


What are data structures in java?

535


Is java based on c?

539


How we create object in copy constructor?

648


What is a Transient Object?

641


Explain java coding standards for variables ?

673


Why does java does not support multiple inheritance? Explain

549


Which of the classes will have more memory allocated?

543