Java: Is it possible to override the main method?

inicial › Forums › Java › Java: Is it possible to override the main method?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2292626
    matheusdba
    Keymaster

    Is it possible to override the main method?

    #2292627
    matheusdba
    Keymaster

    NO, because main is a static method. A static method can’t be overridden in Java.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.