hi,i am new to hibernate. i started using hibernate in my j2se project. in hibernate List result that hibernate returns is List of objects of database table.
i want to know that the result objects i got occupies memory in jvm, do i need something to remove this objects when i complete its use?
or do i need to make List of objects null to free memory space?
Don't go making those lists null! You may end up deleting the association between the aggregating object and it's collection.
When the transaction is completed, and the object goes out of scope, normal Java garbage collection will take care of the list. Of course, it's good to only query what you need, so you don't get massive lists in the first place, but for the most part, this shouldn't be a problem.