Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
java.lang
final class: VMString [javadoc | source]
java.lang.Object
   java.lang.VMString
Code relocated from java.lang.String by
Method from java.lang.VMString Summary:
intern
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.VMString Detail:
 static String intern(String str) 
    Fetches this String from the intern hashtable. If two Strings are considered equal, by the equals() method, then intern() will return the same String instance. ie. if (s1.equals(s2)) then (s1.intern() == s2.intern()). All string literals and string-valued constant expressions are already interned.