aspose file tools*
The moose likes Beginning Java and the fly likes string question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "string question" Watch "string question" New topic
Author

string question

johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
what is the difference between
building a String

String s="abc"
and
String s2=new String("abc");

what is the difference between
making s.equals(s2);
and
s==s2;
??
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Somebody else asked a very similar question recently here. Does that answer your question?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: string question
 
Similar Threads
Strings and Things
Want the difference between String and StringBuffer
String creation
difference between poll memory and non-poll memory?
string object