Home »
MCQs »
C# MCQs
Which access specifier should be used for Main() method in C#?
96. Which access specifier should be used for Main() method in C#?
- private
- public
- protected
- internal
Answer: B) public
Explanation:
The C# Main() method should be defined as public because it is called by runtime. By default Main() method is private.