Can the Java program accept input from the command line?

23. Can the Java program accept input from the command line?

  1. Yes, using command-line arguments
  2. Yes, by access command prompt
  3. No
  4. None of these

Answer: A) Yes, using command-line arguments

Explanation:

In Java, we can also provide values (arguments) while calling the program through the command line. These arguments are known as Command Line Arguments.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.