Is static class thread safe in c#?



Is static class thread safe in c#?..

Answer / Rajendra Singh Rawat

Yes, static classes are thread-safe because only one instance of the class exists. All static members are shared among all instances and are accessed at the class level.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

what is the difference between int and Int32?

5 Answers   TCS,


Is c# and c sharp same?

1 Answers  


How can I process command-line arguments?

1 Answers  


Can you pass value types by reference to a method?

1 Answers  


Why do we need private constructor in c#?

1 Answers  


What is Inheritance in C#?

2 Answers   B-Ways TecnoSoft,


What is .net console?

1 Answers  


In dynamic link library, which api is used for load library?

1 Answers   C DAC,


How do you escape c#?

1 Answers  


What is IL / CIL / MSIL?

1 Answers   CitiusTech,


Explain copy constructor?

1 Answers   Accenture,


destructor, Dispose, Finalize - How they relate to each other

1 Answers   Synechron,


Categories