Re: Command-line arg
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxxxx>
- Date: Sat, 20 Oct 2007 13:42:56 GMT
Stefan Ram wrote:
Wayne <nospam@xxxxxxxxxxxxxx> writes:public static void main(String[] args)
Technical specifications could be more precise and either use a specific import declaration or »java.lang.String«:
The JLS mentions this in §1.2 Notation:
Throughout this book we refer to classes and interfaces drawn from the Java and Java 2 platforms. Whenever we refer to a class or interface which is not defined in an example in this book using a single identifier N, the intended reference is to the class or interface named N in the package java.lang. We use the canonical name (§6.7) for classes or interfaces from packages other than java.lang.
Thus the class `String' implicitly refers to `java.lang.String'
--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.
- Follow-Ups:
- Re: Command-line arg
- From: Lew
- Re: Command-line arg
- References:
- Command-line arg
- From: joe
- Re: Command-line arg
- From: Wayne
- Re: Command-line arg
- From: Mark Space
- Re: Command-line arg
- From: Wayne
- Command-line arg
- Prev by Date: Re: why people use "Map m= new HashMap()" or "List l = new ArrayList()"?
- Next by Date: Re: DI = XML parser that can resolve references?
- Previous by thread: Re: Command-line arg
- Next by thread: Re: Command-line arg
- Index(es):
Relevant Pages
|