What is static variable in c#?



What is static variable in c#?..

Answer / Ram Chandra Pal

A static variable in C# is declared with the 'static' keyword and belongs to the class, not an instance of the class. Static variables are shared among all instances of the class and retain their value between method calls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How do I edit a dll file?

1 Answers  


What is array formula?

1 Answers  


How do you inherit from a class in C#?

3 Answers   Visual Soft,


What is better C# or VB.NET?

1 Answers  


What is uint64?

1 Answers  


What are Sealed Classes in C#?

27 Answers   DataPoint, Wipro,


What is the difference between hashtable and dictionary in c#?

1 Answers  


How to force my .net app to run as administrator on windows 7?

1 Answers  


What does do in c#?

1 Answers  


What is private void in c#?

1 Answers  


Explain when should you call the garbage collector in .net?

1 Answers  


What is the use of tuple in c#?

1 Answers  


Categories