can a program use more than one command-line argument?



can a program use more than one command-line argument?..

Answer / Mamata Kumari

Yes, a Java program can accept multiple command-line arguments. You can access these arguments using the `args` array that is passed to the `main` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

What is java flatmap?

1 Answers  


Why doesn’t the main method throw an error with no arguments?

1 Answers  


What is native class in java?

1 Answers  


What is the meaning of the words public, static and void?

1 Answers  


Is openjdk the same as jdk?

1 Answers  


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. Define how can I implement this logic?

1 Answers  


How can the static main method use instance variables?

1 Answers  


Explain working of java virtual machine (jvm)?

1 Answers  


Is java an api?

1 Answers  


When a thread is created and started, what is its initial state?

1 Answers  


What about 'hostile applets'? : java security

1 Answers  


Why serialization is used in java?

1 Answers  


Categories