:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Microsoft Related >> C Sharp


 Visual Basic interview questions  Visual Basic Interview Questions (614)
 C Sharp interview questions  C Sharp Interview Questions (721)
 ASP.NET interview questions  ASP.NET Interview Questions (1442)
 VB.NET interview questions  VB.NET Interview Questions (150)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (198)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
what does  static void Main(string[] args) in C# mean????????
 Question Submitted By :: Anjali
I also faced this Question!!     Rank Answer Posted By  
  Re: what does static void Main(string[] args) in C# mean????????
# 1
in C# Main function returns something as string. If u dont
want something return to function u have to use Void. And
Static Keyword shows that there should be something in the
function which is static, i.e. WriteLine() is a static
member method of the Console class.
Is This Answer Correct ?    38 Yes 44 No
Vaibhav Durhaya
  Re: what does static void Main(string[] args) in C# mean????????
# 2
This can be explained as below

public : since the method will be accessed by the other
classes(.net runtime). That is why access modifier is Public

.net runtime environment call static method of the class
where main is defined. By making Main method as static .net
runtime environment do not need to make object of the class.
runtime environment call the method something like as stated

Class A
public static void Main(string[] agrs)

.net Runtime-->

Void :
Main method does not return anything

(string[] args):
Here we can pass any number of parameter to the class.
lets say we are making an exe taking 2 parameters then we
can pass parameters to the main method
Is This Answer Correct ?    74 Yes 7 No
  Re: what does static void Main(string[] args) in C# mean????????
# 3
It is the code starting point and when a function specified with static it will be always available in App Domain (in application). Also no need to create any instance and Classname.Function / Method name will work. The usage of string args[] is read the command line argument. 
Is This Answer Correct ?    23 Yes 3 No

Other C Sharp Interview Questions
  Question Asked @ Answers
How do you generate documentation from the C# file commented properly with a command-line compiler?   1
What are the different generaions of Garbage Collection and how do they work   4
What connections does Microsoft SQL Server support?   3
what is the difference between passing a value object by reference and a reference object by value? TCS 4
What are the access-specifiers available in c#? Syntel 25
why C++ Partial Object Oriented Programming Language and C# and Java Fully Object Oriented Language TCS 11
Can you prevent your class from being inherited and becoming a base class for some other classes?   4
the selected inf of other combobox?How do you achieve it? Microsoft 1
How do you remove the objects which are not in use?Explicitly or implicitly?What is the exact mechanism going behind? Choice-Solutions 2
How structure objects are destroyed? As GC releases only the objects in stack, and structure is a value type and stored in heap. So how structure objects are released?   2
What are three test cases you should go through in unit testing? Wipro 1
What is a private constructor? where will you use it? Fulcrum-Logic 6
For more C Sharp Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::