This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hmmm; that seems pretty clear to me. If you have a class like
and you compile it, the package name "com.foo.you" is included in the Foo.class file. Moving the Foo.class file to a different directory doesn't change the fact that class Foo is in package com.foo.you . The only way to change that is to edit the "package" statement in Foo.java and recompile it.