1.what is the default package in java?
The default package in java is given to all programs which dont have an explicit package declaration statement inside.
The above program 'MyClass' will be in the default package.
The above program 'MyClassInSpecificPkg' belongs to a package named 'myownpackage' and its available only with its reference.
Hope this helps!