This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
gc is a method in java coding , invoke the method as specified above and be much more clear with your question , gc is already maintain the heap(memory) for performing the specified tasks , if you get your problem solved then do click the button problem solved!!!1111