Results 1 to 2 of 2
  1. #1
    REICHKONIG is offline Member
    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Post Use of passing arguments in main method

    eg.
    class abc{
    //icode
    public static void main(String[] args){

    //code
    }
    }
    1.What is the use of passing arguments in main method?.
    2.Why array of Strings and array of Strings(i.e args) is not used anywhere inside main?(in most of the case)?.
    3.Specify an example using args.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Use of passing arguments in main method

    It would probably better for you if you try to solve this assignment first and then ask questions regarding your attempted solution. You learn more if you stretch the neurons of your cerebral cortex to their limits.

Similar Threads

  1. Problem passing arrayed arguments to a method
    By vcl in forum New To Java
    Replies: 1
    Last Post: 06-27-2011, 07:04 PM
  2. Passing array arguments into main
    By JohnDas in forum New To Java
    Replies: 12
    Last Post: 11-10-2010, 03:00 PM
  3. passing arguments
    By mac in forum New To Java
    Replies: 3
    Last Post: 04-07-2010, 11:30 PM
  4. passing hashmap from a method and call it within main
    By rajuchacha007 in forum New To Java
    Replies: 2
    Last Post: 04-06-2010, 09:41 AM
  5. Replies: 5
    Last Post: 10-04-2008, 11:13 AM

Tags for this Thread

Posting Permissions

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