Q. Can the Java program accept input from the command line?
β
Correct 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.