226k views
0 votes
In a java program, package declaration .................... import statements.

A) must precede
B) must succeed
C) may precede or succeed
D) none

1 Answer

0 votes

Answer: (A)must precede

Explanation:In java, import statements are important part that allows to import the whole package or any specific class in the package.It is used to import the built-in as well as user defined packages into the java source files and because of this your class can also refer to outside class of other packages as well in a direct way.

User Pietz
by
4.4k points