[ajug-members] Explain the Method Header in more detail

Brian Alexander Lee brian.a.lee at gmail.com
Thu Nov 17 11:17:13 EST 2011


I actually like these questions. Since ajug mail archives are googlable people will see this question for all eternity. This helps in the future for screening job candidates. 

BAL

On Nov 17, 2011, at 9:54 AM, Igor Tovstopyat-Nelip <igor.tn at gmail.com> wrote:

> 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
> http://www.ajug.org/mailman/listinfo/ajug-members
> 
> 
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20111117/5b1482da/attachment-0001.html 


More information about the ajug-members mailing list