-
June 1st, 2011, 01:09 AM
#1
Assigning null to Complex Type object in the context of memory in java
What is the meaning of assigning null to Complex Type object in the context of memory in java language.
Eg
while(true) //Approx 9000 times
{
Employee objEmployee = new Employee ();
objEmployee = //Put some value
objEmployee = null;
}
Does assigning null to the complex type make the object ready for garbage collection in java.Also
is it the way to efficient memory management in java.
Regards,
Sagar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|