Home TechnologyProgramming Subscribe to RSS

Explain About Command Line Arguments?

Answer Question

1 Answer - Sort by: Date | Rating

    Command Line Arguments---- I am trying to explain each word one by one
    Command ------perform specific task
    ex. When CMD is typed in run window and then press ok button then open a black screen that is called command prompt.
    Command Line ------on  command prompt where command is supplied that is called command line.
    using command prompt dos commands are executed and java program is also executed using command prompt.
    for executing java program command is supplied with given syntax
    java  java_class_name argument1 argument2.........
    Java--- is a command
    java_class_name ---name of java file which you want to execute
    argument1 argument2 --- are the values passing to java application from out side
    these argument1 argument2 are stored in string array argument of main method
    0 0

    Pratapsing  

    answered 2 months ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International