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?

Minakashi
Views: 574 | Community Opinion: 1

Tags..  Core Java  Java Interview

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Orlin Said..

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






What do you think? Add your opinion/answer
*Name
*your opinion/answer: