Library standardization

Robert Fraser fraserofthenight at gmail.com
Tue Apr 22 20:17:23 PDT 2008


Bill Baxter wrote:
> What is a "package" in Java exactly?  Does a package correspond to one 
> source file in Java?  Or a directory like D?

A directory, just like in D.

> I seem to remember some rule of only one main class per .java and the 
> name of the class must match the name of the file.

One public class. You can have any number of package-protected classes 
with any names you want (as long as there's no conflicts).



More information about the Digitalmars-d mailing list