A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Joined: Aug 06, 2002
Dec 19, 2002 04:11:00
The above method in httpsession, does it clear its resources as well, (bascally setting the removed object to null) or is the attribute itself still available ?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Dec 19, 2002 10:31:00
You don't set an object to null, you set a reference to null. The reference in the session is set to null, whether or not the object you attached to a session is GCed when you remove it depends on if other references exist.
It is sorta covered in the
JavaRanch Style Guide
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014