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

Answer Posted / naveen

Yes,two Objects will be created, First in Constant Pool and
second Object in Heap area of the Memory

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

java program with complete 4 oops concepts implemented example

2732


What is the difference between interface & abstract class?

565


Explain restrictions for using anonymous inner classes?

591


What is the major advantage of external iteration over internal iteration?

619


Why does my function print none?

524






What are class types in java?

585


Can vector have duplicates in java?

514


What is percentage in java?

577


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

857


Is there a jre for java 11?

560


What is preparedstatement in java?

566


Is it possible for a yielded thread to get chance for its execution again?

518


Can we able to pass objects as an arguments in java?

539


What is the default value of the local variables?

515


Can we override the overloaded method?

570