-2

What information is actually passed into the program if I pass a file using the command line?

Would this be the file name, or would it be the contents of the file?

Matthias
  • 3,582
  • 2
  • 30
  • 41
KevinRandall
  • 51
  • 1
  • 1
  • 6

1 Answers1

0

In Java, unlike in C/C++, the file name is not the first argument.

Only the arguments are in args[].

Chris Kitching
  • 2,559
  • 23
  • 37