Ask Question
27 June, 14:58

Which of the following commands would you use to start the program Main with four strings? a. java Main arg0 arg1 arg2 arg3 b. java Main argo arg1 arg 2 arg3 arg4c. java Main argo arg1d. java Main argo arg1 arg 2

+5
Answers (1)
  1. 27 June, 15:16
    0
    The answer is a. java Main arg0 arg1 arg2 arg3

    Explanation:

    The strings here are called command line argument. These command line arguments allow you to run your program from your terminal/command line. You may think just like passing parameters to a function. Since you have four strings in your program, you need to pass four arguments.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following commands would you use to start the program Main with four strings? a. java Main arg0 arg1 arg2 arg3 b. java Main ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers