Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
which part of the program will execute first
1.the main or
2.the static methods

what exactly happens and in what the memory will be allocated.

please send me any links ....i am new to dot net
Posted
Updated 20-Dec-11 23:35pm
v2

Every time compiler called main method and then call other method.
Main method is entry point of exeecution. check here[^]
 
Share this answer
 
Comments
Member 8388026 21-Dec-11 6:10am    
Thank u
main is executed first (it is the application entry-point, after all: "this not C++, this is not C++ *"). It is worthy nothing than main is a static method.



(*) In C++ constructors of static objects are executed before main starts.
 
Share this answer
 
Comments
Member 8388026 21-Dec-11 6:10am    
Thank u
CPallini 21-Dec-11 6:15am    
Your are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900