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
What are the restriction imposed on a static method or a static block of code?
How do you initialize an arraylist in java?
What is pre increment and post increment in java?
What is difference between == and === in js?
How to reverse a string in java?
Differentiate between static and non-static methods in java.
What is application tier?
Is there any limitation of using inheritance?
What is autoboxing and unboxing?
What is a final class ?
What is void class in java?
Tell me how many ways are there to initialise an integer with a constant.
Why should we use singleton pattern instead of static class?
What is a numeric literal?
What is variable and constant explain with example?