This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes String creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String creation" Watch "String creation" New topic
Author

String creation

asha Pawaskar
Greenhorn

Joined: Jun 25, 2010
Posts: 7
hi

what is the difference between

String s = "abc"; and
String s = new String("abc");
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Check this Journal article.


[My Blog]
All roads lead to JavaRanch
 
GeeCON Prague 2014
 
subject: String creation