Will class level variables are garbage collected?

Showing Answers 1 - 7 of 7 Answers

kimberly wang

  • Oct 24th, 2005
 

No., class level is not GC.

  Was this answer useful?  Yes

vinodreddy

  • Oct 30th, 2005
 

yes

  Was this answer useful?  Yes

K.V.N.R.MURALI KRISHNA

  • Jul 7th, 2006
 

yes

class level variables means it is a static variables.

static variables be stored in method stack. some body called method stack as a class area.

when eve garbage collection want to space at the time it will come and collect the un-referenced objects,variables etc.

so static variables must be garbage collected.

  Was this answer useful?  Yes

digvijayjpr

  • Oct 16th, 2006
 

A class variable can not be garbage collected because a class varible will be avaliable as long as the class is available.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions