Once the JVM finds the class you are looking for, it checks the first line for that package statement. If the package statement isn't there, it assumes the class, the command or SOMETHING was named...