A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Signature of main
Joined: Dec 16, 2003
Sep 14, 2004 23:04:00
what is the significance of the
arguments in the main method
some please do give me a detailed explanation for this.
if possible give some demo.
Joined: Aug 04, 2004
Sep 15, 2004 00:04:00
You pass through this String array the arguments from the command line.
If you start a class like this
and your main is defined
public static void main(String args)
then args contains the string "hello".
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Joined: Jul 09, 2004
Sep 15, 2004 02:40:00
Also, in sm of the application we need to compile sm java files [say if any modification is detected]. It may be req. to pass sm parameter to that utitlity/ application at runtime.
But I belive it is much more that this!!
Joined: Aug 03, 2002
Sep 15, 2004 07:54:00
If you are not too
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: Signature of main
Not able to find .dll file in my java path
Tapestry refrence needed
mock exam question
Why do we give "String  args" as an argument to main??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014