DEVFYI - Developer Resource - FYI

What restrictions are placed on the location of a package statement within a source code file?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

193. What restrictions are placed on the location of a package statement within a source code file?

A package statement must appear as the first line in a source code file (excluding blank lines and comments).

(Continued on next question...)

Other Interview Questions