[3398] in java-interest

home help back first fref pref prev next nref lref last post

Strings and ==

daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Fri Nov 10 04:45:57 1995

Date: Fri, 10 Nov 1995 01:58:35 -0600 (CST)
From: Pat Niemeyer <pat@icon-stl.net>
To: java-interest@java.sun.com



Equivalent Strings seem to test "==".
(which otherwise means identity, right?)

Is that a special feature of strings or a side effect of strings being put
into a "string pool"?

If it's the latter, how would you create a string that Java didn't
place in the string pool?  


Pat
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post