System.out.println("somestring"); It will create any object
or not

Answer Posted / manish pal

yes it create 2 objects
first for string literal
second for print stream

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of default method in interface in java?

555


Explain how to force the garbage collection in java.

535


How an object is serialized in java?

530


What is string [] java?

530


What is a void method?

518






Which arithmetic operations can result in the throwing of an arithmeticexception?

599


What is the difference between stringbuffer and stringbuilder class?

573


what is the messsage u r going to get from an objectoriented programing?

1613


What is default constructors?

543


Can we compare two strings in java?

557


Explain the reason behind ending a program with a system.exit(0)?

600


What is the default value of local and global variables?

567


Why do we use string?

581


What are the two types of java programming?

539


Is space a string in java?

514