Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kristopher Davis   on Aug 02 In Java Category.

  
Question Answered By: Latasha Wilson   on Aug 02

I think the answer was rather obvious if you actually try it.

public class TestStuff{

public static  void main(String[] args){
for (int i = 0; i < args; i++){
System.out.println(args[i]);
}
}
}

Compile and run

java TestStuff then after put arguments in the command line to see what
happens

The String[] argus would essentialy equal

String[] args  = {"then", "after", "put", "arguments", "in", "the",
"command", "line", "to", "see", "what"};

Thus when you run TestStuff you would recive 11 printlns (because there
are 11 enteries in the string  array args).

So the answer is Dynamic.

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on query for Java Exports Or get search suggestion and latest updates.


Tagged: