A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
equals method with stringbuffer
Joined: Apr 02, 2010
Sep 01, 2010 12:28:52
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2 = new StringBuffer("Amit");
sb1.equals(sb2) = false ?
s1 = new String("Amit");
String s2 = new String("Amit");
s1.equals(s2) = true
Vinoth Kumar Kannan
Joined: Aug 19, 2009
Sep 01, 2010 12:42:50
A search in this forum would have helped. We had this topic discussed recently.
Please search before posting a question..
I agree. Here's the link:
subject: equals method with stringbuffer
Difference of equals method in string and stringbuffer
stringBuffer VS string
String and StringBuffer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014