This is a piece of code I have on one of my JSP. arrMemo is an array
list returned from a EJB Call which has number of MemoProperties objects
in it. Basically records are retrieved from DB and populated into
ArrayList(arrMemo) and returned by the EJB method.

What I want to know is after displaying these the data in the
MemoProperties in the front end we are NOT assigning null inside every
element of the arrMemo (ArrayList).

My question is will the GC remove this arralist from the memory or not?

for(int i=1; i<arrMemo.size(); i++)
{

        Object objTemp = arrMemo.get(i);
        objMemoProp =
(com.mediasolv.xsolvweb.memo.MemoProperties)objTemp;

        strMemoID               = objMemoProp.getMemoID();
        String strTempDes = "";
        strTempDes  = objMemoProp.getMemo();
        strMemoDate     = objMemoProp.getMemoDate();
}

Senthoor

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to