Author Topic: Why java main method is static?  (Read 511 times)

Offline Aleksander

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Why java main method is static?
« on: October 29, 2014, 08:22:28 PM »
Hello everyone, I would like to ask you a question that puzzles me, why java main method is static I thank you for giving me your answer quickly enough.



Offline Maximillian

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: Java main
« Reply #1 on: June 07, 2018, 10:11:13 PM »
The main() method in C++, C# and Java are static because they can then be invoked by the runtime engine without having to instantiate an instance.


 

Sitemap 1 2 3 4 5 6 7 8 9