Comment on Tutorial - Question: How can you force garbage collection of an object? By Ash



Comment Added by : Biniam E

Comment Added at : 2011-12-17 15:09:09

Comment on Tutorial : Question: How can you force garbage collection of an object? By Ash
You said the garbage collector can not be forced, option A is correct. But I read on MSDN that the GC.Collect() method forces garbage collection. The link to the statement above is here: http://msdn.microsoft.com/en-us/library/system.gc.collect(v=vs.71).aspx

View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Gan,

Above print is not working bec

View Tutorial          By: Amit at 2011-07-25 05:26:47

2. Hiiii

When I am executing

View Tutorial          By: Souvik Bhattacharya at 2008-08-18 00:21:31

3. Very simple, clear visualized and meaning
View Tutorial          By: HIM at 2011-07-21 21:43:58

4. This is a nice introduction. Thanks a lot.
View Tutorial          By: Provas Kumar Saha at 2010-04-26 02:38:34

5. can you provide the full class from start to begin
View Tutorial          By: mohit at 2011-12-01 09:56:22

6. Good one. Keep up the good work.
View Tutorial          By: zubair at 2012-02-23 10:18:36

7. The code gives the following exception :-
<

View Tutorial          By: VIKRAM at 2007-03-11 22:56:16

8. really understandable
but 'm expecting with

View Tutorial          By: rajkumar at 2008-03-14 03:53:21

9. hi RAMLAK i am akankshain and getting these erro
View Tutorial          By: akanksha at 2011-12-06 10:15:47

10. i tried, the coding dont hv any errors but its not
View Tutorial          By: anna at 2010-11-02 21:56:27