The "main" method receives a String array argument containing any command line parameters. This is similar to the "C" argv[] parameter.
There are no security restrictions on an Java Application.