aspose file tools*
The moose likes Beginning Java and the fly likes difference between String a = Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between String a ="abcd" and String b= new String ("abcd")" Watch "difference between String a ="abcd" and String b= new String ("abcd")" New topic
Author

difference between String a ="abcd" and String b= new String ("abcd")

seema seema
Greenhorn

Joined: Apr 02, 2008
Posts: 1
what is the difference between
String a ="abcd";
and
String b= new String ("abcd");
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

Hi,

we've had the same question here just a few days ago.

Most times it's a good idea to search the forum for an existing answer before posting

Marco
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

seema seema,
Welcome to JavaRanch!

We're pleased to have you here with us , but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policyand adjust your display name to match it.

Ideally your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Okie one more ranch mantra!
ChooseAForumCarefully
This question does not really belong to Threads and Synchronization forum for sure!


apigee, a better way to API!
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Marco Ehrentreich:
...we've had the same question here just a few days ago...

Tip: Follow Gaurav's link in that thread.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
jQuery in Action, 2nd edition
 
subject: difference between String a ="abcd" and String b= new String ("abcd")