Home TechnologyProgrammingJava Subscribe to RSS

What Is The Difference Between Java Command Line Arguments And C Command Line Arguments?

Answer Question

2 Answers - Sort by: Date | Rating

    Java command line arguements are passed at RunTime.and is more flexible but C command line arguements are not flexible
    0 0

    Kumarhero  

    answered 3 years ago

      Java Commandline arguments are stored in a String array.We can take it by giving the index.

      for example......

      We are giving

      public static void main(String args[])


      Here args is the array.

      By args.length, we will get the length of the array.
      By args[0],args[1],....etc. we can get the elements of the array.
      0 1

      Susanbinu  

      answered 3 years 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