java

Command Line Arguments in Java

Command line arguments means to pass or input value as arguments from command prompt to java program for specific purposes. Using command line arguments we can make java program as command. In other words we can say that it is way to input the value for the program before executing it.
When we use java program as command line argument then the arguments written on command prompt can be receive by class’s main() function during run-time as:–