MMO Admin 845 Questions 9 Answers 0 Best Answers 1k Points View Profile 0 How and when to clean the heap memory? MMO Admin Leader Asked: April 2, 2019In: JAVA 0 garbageruntime Share Facebook 1 Answer Voted Oldest Recent MMO Panel 60 Questions 912 Answers 3 Best Answers 39 Points View Profile MMO Panel Expert Added an answer on April 2, 2019 at 5:37 PM Process of cleaning heap is the called garbage collection. This is an automated process and we can also invoke it as per our need. It can be invoked with statement System.gc() or Runtime.getRuntime.gc(). 0 Reply Leave an answerLeave an answerCancel reply Select file Browse Save my name, email, and website in this browser for the next time I comment.