Home » Interview Questions » Core Java Interview Questions » What restrictions are placed on the location of a package statement within a source code file?
 

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).

Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code: