Is the absence of a package declaration in the source code acceptable?
Explanation
Package statement is optional. For small programs it's common to omit it, in which case Java uses empty package that is called a default package.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback