Results 1 to 5 of 5
Thread: removing reference
- 02-12-2009, 11:24 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 9
- Rep Power
- 0
- 02-12-2009, 11:31 AM #2
Member
- Join Date
- Feb 2009
- Location
- Italy
- Posts
- 51
- Rep Power
- 0
they are not equal
removes the first element from the listJava Code:list.remove(0);
the list variable still has the reference to the ArrayList instance
sets the list variable to null (removes the reference to the ArrayList instance)Java Code:list = null;
- 02-12-2009, 11:35 AM #3
Member
- Join Date
- Dec 2008
- Posts
- 9
- Rep Power
- 0
Is it good to make the list = null whenever it is in no use for better memory management....
- 02-12-2009, 11:45 AM #4
thats good one .. .. . . .. :o
Rakesh Mehta
- 02-12-2009, 11:46 AM #5
Member
- Join Date
- Dec 2008
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
Object and reference
By katie in forum New To JavaReplies: 2Last Post: 10-19-2009, 03:45 PM -
pls help me out its critical ...... how can we use an arralylist reference
By raj reddy in forum Web FrameworksReplies: 0Last Post: 04-15-2008, 08:12 AM -
Getting the Object Reference Name
By Deathmonger in forum New To JavaReplies: 2Last Post: 03-12-2008, 02:51 PM -
image removing
By Triss in forum New To JavaReplies: 3Last Post: 01-20-2008, 08:27 PM -
Removing characters
By kDude in forum New To JavaReplies: 3Last Post: 12-03-2007, 02:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks