class Hello { void Method1() { } void Method2() { } }What will be executed first? It would be wrong to assume Method1, because it is above Method2. You could as well write Mathod2 above Method1. The truth is the program will not even compile. there is always one Method called Main(), that is executed when the application is started. It is responsible for eveutually calling other methods.
static void Main() { }Normally methods are always part of an object. The word static does tell the compiler, that this method is not part of an object. That is because when Main() should be the first executed method we have no chance to create an object. void does indicate, that Main() does not return anything.
We do only one thing in our Main() method:
Console.WriteLine("Hello, World!");