Home Answers Viewqa Java-Beginners intern() of String

 
 


Nitish Kumar
intern() of String
1 Answer(s)      2 years and 5 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

Thanks









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.