Difference between static variable and constant in c#?

 Posted by Sathya4260 on 12/27/2010 | Category: C# Interview questions | Views: 18583 | Points: 40

Static Variable:
1.Variable set at run time
2.Can be assigned for reference types.
3.Initialized on constructors

1.Variable set at compile time itself.
2.Assigned for value types only
3.must be initialized at declaration time
4.only primitive data types.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Sathya4260