Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 387 Page Views: 

How to force garbage collector to run?



Posted By: Avi Date: 4 November 2010 03:10:47 PM
 Answer:

By using System.gc().


Posted By: avibtech


Date: 4 November 2010 03:10:47 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image BRkIUf
Related Questions
Core Java : What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

What happens if a try-catch-finally statement does not have a catch clause to handle an exception th....

The exception propagates up to the next higher level try-catch statement (if any) or results in the ....
Category: Core Java Date: 11/5/2010 6:36:55 AM
Core Java : Does garbage collection guarantee that a program will not run out of memory?

Does garbage collection guarantee that a program will not run out of memory?

No, It clears the memory from objects without refrences.
Category: Core Java Date: 11/5/2010 5:42:47 AM
Core Java : What is HashMap and Map?

What is HashMap and Map?

Map is Interface and HashMap is class that implements that.
Category: Core Java Date: 11/5/2010 5:31:52 AM
Core Java : Why ArrayList is faster than Vector?    

Why ArrayList is faster than Vector?    

Because Vector is synchronized and synchronization reduces the performance.
Category: Core Java Date: 11/5/2010 4:58:51 AM
Core Java : What is the security mechnaism used in java?

What is the security mechnaism used in java?

Java uses sand box security model.  
Category: Core Java Date: 11/5/2010 4:58:51 AM