Java: main method declaration

It’s good to remember that there are a few ways of defining the main() method in Java 5:


public static void main(String[] args) {}

or


public static void main(String args[]) {}

or


public static void main(String... args) {}

Sometimes, we don’t care and remeber of basic stuff, which can result in worse score on the exam :)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Technorati
  • Reddit
  • StumbleUpon
  • description
  • Wykop
  • Gwar
  • e-mail

0 Responses to “Java: main method declaration”


  1. No Comments

Leave a Reply