Originally posted by Hrishikesh Maluskar:
I want to know whether String objects created in System.out.println Statement or not.
I think , Yes, Strings are created inside The System.out.print() statements ! You may have confusion , because , people thinks , whatever we write in side System.out.println(), flushes out !, It may flush out , but not Garbage Collected !