Kindly answer my queries on foll. questons (1) GC A. You can directly free the memory allocated by an object. B. You can directly run the garbage collector whenever you want to. C. The garbage collector informs your object when it is about to be garbage collected. D. The garbage collector reclaims your object's memory as soon as it becomes a candidate for garbage collection. E. The garbage collector runs in low-memory situations. (2) a) The programmer has a method for immediately freeing the memory of an object. b) Garbage collection happens at set intervals of time. c) The programmer can signify through a reference that an object is no longer needed. Is c is right or wrong
posted 15 years ago
For Question 1 . I think C is more appropriate. (It calls Finalize method).wrt to D&E We cant gurantee those things. The GC may run in low-memory situations. For question 2 . It would be nice to see the whole question and other choices.Assuming that question is some thing to do with GC properties C could be a possible candidate , but here again programmer may signify by invoking finalize but object may again make itself available.can you please post the whole question ??