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
What is the use of default method in interface in java?
Explain how to force the garbage collection in java.
How an object is serialized in java?
What is string [] java?
What is a void method?
Which arithmetic operations can result in the throwing of an arithmeticexception?
What is the difference between stringbuffer and stringbuilder class?
what is the messsage u r going to get from an objectoriented programing?
What is default constructors?
Can we compare two strings in java?
Explain the reason behind ending a program with a system.exit(0)?
What is the default value of local and global variables?
Why do we use string?
What are the two types of java programming?
Is space a string in java?