File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

String creation

asha Pawaskar

Joined: Jun 25, 2010
Posts: 7

what is the difference between

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

Joined: Nov 24, 2005
Posts: 14688

Check this Journal article.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: String creation
It's not a secret anymore!