You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hajratwala, Nayan (N.)" <nh...@ford.com> on 2003/03/18 19:52:32 UTC

[OT] RE: new String("") vs String newStr = ""

Take a look at this link:

	http://java.sun.com/docs/books/tutorial/java/data/stringsAndJavac.html

The section on "Literal Strings" should answer your question.

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-----Original Message-----
From: Butt, Dudley [mailto:dbutt@metropolitan.co.za] 
Sent: Tuesday, March 18, 2003 1:48 PM
To: 'struts-user@jakarta.apache.org'
Subject: new String("") vs String newStr = ""


I know this isn't a struts question but i was hoping somone might be able to assist anyways.

Can anyone tell me the diference between the two statements:

String newStr = new String("") 

String newStr = ""


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org