Question #166851

Why Is Method main Declared static?


Expert's answer

It is declared static so that the compiler can call it directly without creating the new object. The main method is the starting point of the compilation of the program. Hence it is compulsory to call main method.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS