Results 1 to 2 of 2
- 12-06-2010, 06:14 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 1
- Rep Power
- 0
- 12-06-2010, 06:21 AM #2
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
Because it just seems to end up working that way... The immutability of Strings is probably based in the fact that C/C++ strings are const char arrays. Why we use Strings is based on that fact that java converts string literals to String, not some other class (such as StringBuffer.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Similar Threads
-
How compare two String?
By artemff in forum New To JavaReplies: 8Last Post: 08-29-2011, 08:00 AM -
compare sql resultset with a String
By cotarelo in forum NetworkingReplies: 6Last Post: 06-21-2010, 03:53 PM -
Comparing string using == or != (how to compare string in if else)
By fiqueudrue in forum New To JavaReplies: 6Last Post: 02-10-2009, 06:48 AM -
Non Allocating String Buffer
By chrisdb89 in forum New To JavaReplies: 5Last Post: 10-25-2008, 06:57 AM -
Help with String Buffer
By mathias in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 06:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks