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 Beginning Java and the fly likes Java Beginner 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 » Java » Beginning Java
Bookmark "Java Beginner" Watch "Java Beginner" New topic
Author

Java Beginner

Nadir Rehman
Greenhorn

Joined: Nov 30, 2001
Posts: 1
Can anybody help me to find information related with intern() function?
------------------
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Use the search facility at top-right to search this forum.
------------------
Bosun
SCJP for the Java� 2 Platform


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Khurram Hussain
Greenhorn

Joined: Sep 29, 2001
Posts: 2
hello there
intern() method is use to change string object from heap to pool.
String aa=new String("Hello"); //this is in heap
String bb="Hello"; //this is in a pool

if ur still confuse please mail me.My email address is y2khurram79@yahoo.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Beginner