Why 'static' keyword is used before Main()?

 Posted by Abhisek on 2/25/2010 | Category: C# Interview questions | Views: 5456

Program execution starts from Main(). S it should be called before the creation of any object. By using static the Main() can now be called directly through the class name and there is no need to create the object to call it. So Main() is declared as static.

Asked In: Many Exms | Alert Moderator 

Comments or Responses

Login to post response