Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I disagree. It can be useful to call main from other contexts- for example, recursion. Commented Mar 26, 2012 at 22:35
  • 4
    Personally if you're recurring your main method I think you should instead be calling another method and recurring that. Only in the simplest contexts (console app of roughly homework-level complexity/difficulty) would it be acceptable to call main() from within your program, and I would call that a trivial situation. Commented Mar 26, 2012 at 22:57