This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes intern method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "intern method" Watch "intern method" New topic
Author

intern method

sharon daze
Greenhorn

Joined: Feb 08, 2009
Posts: 16
Hello all ,

can anyone give me a good example of how to use intern() method for string to refer to the same string object.

Thanks


http://myjvm.wordpress.com
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317



Hope this helps...

[edit] added a disclaimer [/edit]
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8805
    
    5
the intern method is not on the exam


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: intern method
 
Similar Threads
How we can find that how much string objects has been created?
What is difference
How many Objects ?
use of Intern() method of String
Significant different between == and equals()?