How many objects are created when we create String class
object using new operator?
Answer Posted / mahesh
yes two objects will be created when you use new operator
for a String. The reason for this is at first it creates an
object in HEAP and then verifies in the String Constant
Pooling if it is not available then creates the new one in
pool. so totally two object will be created.
Is This Answer Correct ? | 22 Yes | 5 No |
Post New Answer View All Answers
What do you mean by Function Overloading in java?
What is arraylist e?
What is a generic data type?
What is parsing in grammar?
What are the important features of Java 9 release?
Can we have try block without catch block?
What is data movement?
What is the use of jtable?
What do you mean by composition in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
How is hashset defined in java?
How many types of methods are there?
Which is better ascii or unicode?
What do you mean Abstraction in java?
What 5 doubled?