Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  

intern() of String



Share on Google+Share on Google+

Nitish Kumar
intern() of String
1 Answer(s)      6 years and 8 months ago
Posted in : Java Beginners

Please explain me the working of intern().

View Answers

December 18, 2010 at 11:17 AM

Hello Friend,

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