String.intern() Creates instance of string in memory .
Here are some examples with output.
String str1 = "plus2net";  
String str2 = "plus2net";  
String str3 = new String("plus2net");  
String str4 = str3.intern();          
System.out.println(str1==str2); // true
System.out.println(str2==str3); // false
System.out.println(str4==str2); // true

All String functions

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer