A value-type field variable is initialized to its default value, which is equal to the value computed by the value type's default constructor.A reference type field variable is initialized to its default value, which is null.All numeric type field variables are initialized to 0, bool is initialized to false, and string to empty string.The field variables initialization is basically done by the memory manager by setting all memory bits to 0 before it is allocated for use.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2009 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/8993/default.asp?cachecommand=bypass