intern() of String

intern() of String

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

Thanks









Related Tutorials/Questions & Answers:

Ads