Command Line Arguments in Java – Objective

This “Core Java Practice Test on Command Line Arguments in Java” providing set of objective type questions on java Command Line Arguments to test your theoretical skills and technical skills.

1. Is it mandatory to pass command line arguments?


2. What is command prompt?


3. Why we need to run java application from command prompt?


4. What type of values we can pass from command line?


5. How to store command line arguments?


6. Why main method is taking command line arguments?


7. How to process integer in the application which has collected at command line?


8. What is command line argument?


9. Why main() method input type is String array?


10. Can we pass other than String type data from command line?


Question 1 of 10

Share this