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

Vincent Stoessel vincent at xaymaca.com
Thu Nov 17 13:17:00 EST 2011


What's kind of ironic is that on a huge java web based project ( in terms of LOC ) that I'm working on there is not even 1 occurrence of the main method in our code. Gotta love frameworks.   Personally, I don't mind 101 questions. *shrugs*

Sent from my iPhone

On Nov 17, 2011, at 11:17 AM, Brian Alexander Lee <brian.a.lee at gmail.com> wrote:

> 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
> _______________________________________________
> 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/d976fa06/attachment.html 


More information about the ajug-members mailing list