AFAIK, because of "auto boxing" of Java SE5, it's exactly the same.
On 25 Lis, 13:49, analyn flores <[email protected]> wrote: > Which saves more memory? > > String str = ""; > or > String str = new String(); -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
