GeeCON Prague 2014*
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


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: 8815
    
    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.)
 
GeeCON Prague 2014
 
subject: intern method