[ajug-members] Explain the Method Header in more detail
igor.tn at gmail.com
Thu Nov 17 09:54:22 EST 2011
Are you serious? You are asking a question to the language group without
making an effort to figure out what is the very first letter of the
alphabet is? How about opening a 101 book at least once? And, isn't this
trivially googlable as well?
On Thu, Nov 17, 2011 at 1:55 AM, TAC2010 <tac2010 at comcast.net> wrote:
> To my fellow AJUGS,
> Can you explain in a better detail the Main () Method Header:
> *public static void main(String  args)*
> *public *= the modifier that can be viewed and accessed by other classes.
> Main (method) must use the "public" accessor so the
> run-time system can call it.
> *static *= a method that does not use instance attributes or methods. It
> only uses parameters , local variable, and static constants,
> and other static methods in the same class.
> *void* = the data return-type of the method. It does not return any
> values; it is not empty though
> *main* = What is this??????
> *String  *= an array of strings
> *args* = Arguments
> ajug-members mailing list
> ajug-members at ajug.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ajug-members