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 blanklines and comments).

Showing Answers 1 - 1 of 1 Answers

Chandu.kalyan vardhan

  • Oct 18th, 2005
 

package statement must appear as the first line in a source code file and one public class declaration.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions