Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about "main"

 
jeff yashero
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me, could you tell me why the word "main" is not in the keyword-list?
 
Tom Blough
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a keyword. You can create variables with the name main. You can create methods with the name main.
It's special only in that the Java Interpreter looks for a public method with the signature main(String[]) and begins execution there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic