This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 8801
    
    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
What is difference
How many Objects ?
use of Intern() method of String
Significant different between == and equals()?
How we can find that how much string objects has been created?