Answer Posted / shadab alam
static costructor of a class invoked automatically when
class is loded provided Main method is given.There is no
need to create instance of a class.
we can prove it by following program in c#
using System;
class aa
{
static aa()
{
Console.Write("without instance");
}
public static void Main()
{
}
}
output will be
---------------
without instance
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
Explain the difference between boxing and unboxing.
What is difference between ienumerable and enumerable in c#?
What is namespace explain with example?
What is string concatenation?
Explain what is copy constructor?
What is the symbol used for in c#?
What are the different states of a thread?
Is c# a backend language?
What is the difference between selection and projection?
Name some properties of thread class.
What do u meant by "SBI" of an object?
What is expandoobject in c#?
What is javascriptserializer c#?
What do you understand by the terms datareader object and dataset object?