Tuesday, March 10, 2009

What restrictions are placed on the location of a package statement

Question :What restrictions are placed on the location of a package statement
within a source code file? (CoreJava)
Answer :A package statement must appear as the first line in a source code file
(excluding blank lines and comments).

No comments: