Jun 17, 2019 in JAVA
Q: 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.

1 Answer

0 votes
Jun 17, 2019

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.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
Jun 17, 2019 in JAVA
...