Showing posts with label Java - Command Line Arguments. Show all posts
Showing posts with label Java - Command Line Arguments. Show all posts

Java - Command Line Arguments / Chapter - 8 /Language Fundamental


javabychetan.blogspot.com

java command line arguments 


1.The arguments which are passing from command-prompt are called command-line arguments.
With these command-line arguments, JVM will create an array & by passing that array as arguments
JVM will call main( ) method.
for  example:-
class Test
{
      public static void main(String [ ] args)

     {


       System.out.println("javabychetan.blogspot.com ");

       for(int i=0;i<args.length;i++)

           {

           System.out.println(args[i]);

           }

       }

}

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com