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

intern method

sharon daze

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.

Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317

Hope this helps...

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

Joined: Oct 14, 2002
Posts: 8815
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