> I'm relatively new to Java and have been using Eclipse as my IDE.
> Would someone please explain why it discourages the use of the default
[quoted text clipped - 3 lines]
> Best Regards,
> Josh
...
> Because the Java spec now forbids it (?).
The JLS says "Unnamed packages are provided by the Java platform
principally for convenience when developing small or temporary
applications or when just beginning development."
[http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html#35029]
They are not prohibited, and do have valid uses. For example, most
example and test code that I post in newsgroups is unnamed package, to
make it as simple as possible to run.
Patricia
VisionSet - 05 Sep 2006 16:59 GMT
> ...
> > Because the Java spec now forbids it (?).
>
> The JLS says "Unnamed packages are provided by the Java platform
> principally for convenience when developing small or temporary
> applications or when just beginning development."
[http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html#35
029]
> They are not prohibited, and do have valid uses. For example, most
> example and test code that I post in newsgroups is unnamed package, to
> make it as simple as possible to run.
>
> Patricia
Ah yes, thought there was a mention.
--
Mike W