In Eclipse, is it possible to change name of the package if it has name (default package) and has classes inside it?
(default package)
Yes.
Either just right-click the class and choose Refactor->Rename, or insert the appropriate package foo.bar at the top and use Ctrl-1 to quickfix.
package foo.bar