Please explain me the working of intern().
Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.
Have Programming Question? Ask it here!
You can compare String objects and string characters by using the method intern(). It is much faster than equals() method.
For more information, visit the following link:
String intern() method