Results 1 to 3 of 3

Thread: Main method

  1. #1
    Join Date
    Nov 2010
    Posts
    18
    Rep Power
    0

    Thumbs down Main method

    i am new to java language
    public static void main(String[]args){

    what are the meanings of this words and what they do in the app

    1.static
    2.void-(i know it's return type)
    3.String
    4.args


    thanks

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    1. static: means the method can be used without instantiating an object. further the method is a class method and not an instance method
    2. String: the array is of type String.
    4. args: this is the name of your string array, one of the things you can change in the main method().

  3. #3
    Join Date
    Nov 2010
    Posts
    18
    Rep Power
    0

Similar Threads

  1. Calling The main method from another method
    By SwissR in forum New To Java
    Replies: 3
    Last Post: 07-27-2010, 12:03 PM
  2. Please help me with the main method
    By nikki in forum New To Java
    Replies: 2
    Last Post: 06-21-2010, 02:07 PM
  3. calling method from main method
    By bob_bee in forum New To Java
    Replies: 4
    Last Post: 10-02-2009, 06:30 PM
  4. Where do I put main method?
    By jerryrice80 in forum New To Java
    Replies: 4
    Last Post: 09-16-2009, 09:23 PM
  5. Help me for main method
    By eliCanzee in forum AWT / Swing
    Replies: 1
    Last Post: 05-26-2009, 01:43 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
  •