Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 C-Sharp (C#) Interview Questions and Answers
What is the static class?
If a class contains nothing but static methods and properties, the class itself can become static. A static class is functionally the same as creating a class with a private static constructor. An instance of the class can never be created. By using the static keyword, the compiler can help by checking that instance member are never accidentally added to the class. If they are, a compiler error happens. This can help guarantee that an instance is never created. The syntax for static class looks like :

static class StaticUtilities {
public static void HelperMethod(){ }
}

An object of type StaticUtilities is not needed to call the HelperMethod(). The type name is used to make the call:

StaticUtilities.HelperMethod();
What is the difference between string and String?
What are JIT compilers? How many are available in CLR?
What is the "Thread.Sleep()" method in threading?

OR

How to pause a thread for a specified time period?
Can you inherit multiple interfaces?
How do you inherit from a class in C#?
When do you absolutely have to declare a class as abstract?
Does C# do array bounds checking?
What is Delegate in C# ?
What is the "Thread.Suspend()"?
Why doesn't C# support static method variables?
OR
In C++, it's possible to write a static method variable, and have a variable that can only be accessed from inside the method. C# doesn't provide this feature. Why?