• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

override

 
anita dhar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is override will main method will override
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question is not a sentence, but the following may help: "overriding" in FOLDOC.

A method called main() could be overridden, if it was a non-final instance method. However, the static method main(), used as the entry point for Java programs launched with the "java" command, cannot be overridden, because it is static.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic