Can we have more than one package statement in source file ?

We canโ€™t have more than one package statement in source file.

In any java program there can be atmost only 1 package statement.

We will get compilation error if we have more than one package statement in
source file.


Posted

in

Tags:

Comments

Leave a Reply