+ 1
Why do we include arguments in the main() method inside a class?
4 Respostas
+ 1
But what's the sense of including parameters.
I am asking what if Javasoft would have made the main() without String [] args,then what had happened?
+ 1
Thommy could u please tell me that what are input switches.
0
I suppose you are talking about (String[] args)?
Those are used to catch switches when starting your program. For example you could attach -h or --help to display a help text when running your program.
0
Then we would need a different way to receive input switches to our programs.