Friday, December 25, 2020

Question:Which of the following are true with respect to the standard implementation of Garbage Collection?

 A Objects must be set to null in order to be eligible for garbage collection 

B Unless specific steps are taken, an object may be moved in memory 

C Objects become eligible for garbage collection as soon as it is impossible for any code to access them 

D Objects which implement finalizers will always have the finalizer called at some point 



Answer: C and D

No comments:

Post a Comment

Get max value for identity column without a table scan

  You can use   IDENT_CURRENT   to look up the last identity value to be inserted, e.g. IDENT_CURRENT( 'MyTable' ) However, be caut...