What are command line arguments?

What are command line arguments?

Passed at the time of running the java program. Java application can accept any number of arguments from the command line. This allows the user to specify configuration information when the application is launched.
Java application can accept any number of arguments from the command line.
when you invoke an application, the runtime system passes the command line arguments to the application\'s main method via an array of Strings. Each String in the array contains one of the command line arguments

By:Sumit Tripathi
Date:2025-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher