2 Answers - Sort by: Date | Rating
It allows you to provide some defined parameters that the user can input at the command prompt. For example, this might be some user options, or parameters that can be provided to the program rather than using default values. It is a useful way to test inputs in a program without going in and modifying the code each time. If you provide code that actson the parameters provided, it also makes the program more flexible by giving the user some intitial input into how the program will run, and may allow the program to run more efficiently as well because you can bypass certain procedures that are not relevant to the user's needs.
0
0
In java every thing is an object. The arguments in the main method can be given only through the command line. Everything you type at the command line will be treated as a String object by the JRE (java runtime environment).So we give string arguments in the main method.
0
0
- What Is Mean By Public ,static, Void In Public Static Void Main(String Args[]) Method?
- Write A Program To Display A String With An Embedded Quote:"Sachin Has Played A Game Of His Life"?
- Why Java Is Popular In Market?
- What Is Plateform?
- How Can I Use Dmp File In Java?
- Can You Write A Program Called InheritanceTest.java To Support An Inheritance Hierarchy For Class Point–Square–Cube?
- Why Java Not Supports Multiple Inheritence?
- A Java Program To Get Sports Marks In Student Package And Print Total Marks Of Student?
- The Project Aims To Implement A JAVA Parser? 1- Classes And Functions 2- Arithmetic/logic Expressions 3- If Statement
- How To Get Java On My Lg 260?
- Write A Java Program To Store A Number Find If It Is Positive Or A Negative Number If Positive Print I Am The First?
- How To Update The Sim 3 Expansion?
- What Is An Attribute In Java?
- Do I Have To Write A Main Method In Every Class I Create?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Servlet In Java?
- Why Do We Use (String[] Arg) In Main Function In Java?
- Why Do We Use "Public Static Void Main(String[] A)" In Java?
- How Can I Change The Main Method Name In My Java Program?
- Why Cant I Create An Object For Main Method In Java?
- How Do I Write A Java Program Without The Main Method?
- Does Every Java Program Include A Java Main Method?
- Can A Java Program Run Without A Main Method?
- Can We Change The Syntax For Main Method In Java\?
- What Is The Difference Between Java Command Line Arguments And C Command Line Arguments?
- What Is A String In Java?

New Comment - Comments are editable for 5 min.