a) private
b) public
c) protected
d) none of the mentioned
1 thought on “Which among these access specifiers should be used for main() method?”
Leave a Comment
You must be logged in to post a comment.
a) private
b) public
c) protected
d) none of the mentioned
You must be logged in to post a comment.
b
Explanation: main() method must be specified public as it called by Csharp run time system outside of the program, by default main is private in nature if no access specifier is used.