Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners intern() of String
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


Please explain me the working of intern().


Advertisement
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:
Advertisements
 

 

 

DMCA.com