RE: Whether a Class,Method can be garbage collected or...
Class is a programme means set of instructions and method is part of that class whichever is available in. That's why classes and methods are not garbage collected. but it's instance is garbage collected.
RE: Whether a Class,Method can be garbage collected or not?How?
well according to me objects are garbage collected (i mean memory allocated is let free)..... therefore i think methods/classes can't be garbage collected.......
RE: Whether a Class,Method can be garbage collected or not?How?
No a Clas Methos cannot be Garbage collected simply because a class or Methoed does not have physical exestence in memory and garbage collector is only used for freeing up the memory which only applies to objects not classes or methods.So only objects can considered for garbage collection not classes or methods..
RE: Whether a Class,Method can be garbage collected or not?How?
No a Class Method cannot be Garbage collected simply because a class or Method does not have physical exestence in memory and garbage collector is only used for freeing up the memory which only applies to objects not classes or methods.So only objects can considered for garbage collection not classes or methods..