The correct order of the declarations in a java program is :

A. Package declaration, import statement, class declaration
B. Import statement, package declaration, class declaration
C. Import statement, class declaration, package declaration
D. Class declaration, import statement, package declaration
View Answer

A. Package declaration, import statement, class declaration

5 1 vote
Question Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x