- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    Can we set different types of parameters & return-types in main() method"?

    Category Microsoft Interview Questions
    Rating (0.2) By 104 users
    Added on 7/19/2011
    Views 379
    Rate it!

    Yes. The Main() method may easily be played around with by developers by passing different parameters and setting different return types. See the code below, that demonstrates different ways the Main() method may be implemented:
    public static void Main(string[] args)
    //NO return type, the argument is an array of strings

    public static int Main(string[] args)
    //Return type is int, argument is an array of strings

    public static int Main()
    //Return type is int, NO arguments

    public static void Main()
    //Return type is void, NO arguments

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Can we set the specifier of the main() method in C# as private?
    View Answer
    What is the use of the main() function in C#?
    View Answer
    What is JPG format
    View Answer
    detail information about how to develop a projet for dispatch managenent in
    View Answer
    what is difference between windows vista and windows 7
    View Answer
    what is difference between windows 2000 server and windows 2003 server
    View Answer
    What is SharePoint from a Technical Perspective?
    View Answer
    What is SharePoint from an Administration Perspective?
    View Answer
    What is SharePoint from a Users Perspective?
    View Answer
    What are the various Sharepoint 2003 and Exchange integration points?
    View Answer
    Can SharePoint compare two document versions?
    View Answer
    What are the integration differences between SPS 2003 and the various Office versions?
    View Answer
    What is trouble shooting?
    View Answer
    What is session and cookies?
    What is the difference between session & cookies?
    Where the session & cookies use?
    View Answer
    How to create a folder named "con".When Type the name for a folder as con it does not accept it. What is the reason?
    View Answer
    How to find the difference between dates.(Year, Month, Day
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Microsoft Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.048828 Seconds