File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Beginner" Watch "Java Beginner" New topic

Java Beginner

Nadir Rehman

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.
SCJP for the Java� 2 Platform

So much trouble in the world -- Bob Marley
Khurram Hussain

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
I agree. Here's the link:
subject: Java Beginner
It's not a secret anymore!