**DONOTDELETE**
(Unregistered)
01/23/06 12:17 PM
String literals

I hope you are still there...

I would like to know whether there is any advantage (concerning memory, performance) in defining globally constant string literals, e.g. EMPTY_STRING="", as opposed to repeating the literal each time I need it. Java will use the interned reference anyway, so I could as well go without the constant?



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.