The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

java basics

Posted by Joju Francis on March 08, 2001 at 4:18 AM

If you type the following code

public class joju
{
public static void main(String args[])
{
System.out.println(args[0]);
}
}
compile it and run this at command prompt as follows:

java joju *.*

or as

java joju *?

the output is the first file-name or directory-name in the working directory.
what is the cause of this kind of output?





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us