Results 1 to 3 of 3
  1. #1
    fanfarius is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Question String[] args / String arguments[] confusion!

    Hi guys.

    I'm just wondering, what importance is the difference in:

    public static void main(String[] args)

    and

    public static void main(String arguments[])

    ..?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: String[] args / String arguments[] confusion!

    Technically none, but the first example is simply the Java code formatting convention and so recommended to be used.

    The language has some design decisions which were basically only done to make the language more familiar for people moving from C/C++ development. This is an example.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    fanfarius is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Default Re: String[] args / String arguments[] confusion!

    Ok, I see - thank you!

Similar Threads

  1. String[] or args[]
    By kkid in forum New To Java
    Replies: 2
    Last Post: 10-17-2012, 03:09 AM
  2. use of String[] args
    By mallikanala in forum New To Java
    Replies: 1
    Last Post: 06-21-2011, 09:09 AM
  3. String, quotes and args
    By mac in forum New To Java
    Replies: 8
    Last Post: 02-04-2010, 05:24 PM
  4. What does String args[] stand for?
    By Addez in forum New To Java
    Replies: 7
    Last Post: 08-19-2009, 11:24 AM
  5. String[] arg and String... args
    By mahendra.athneria in forum Advanced Java
    Replies: 4
    Last Post: 04-28-2009, 08:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •