I think the answer is D.
You can compile them by yourself.If you want to compile and run them successfully.You must do like this.
1,You must declare class P1 as public class;
2,Compile P1.java with the command line list below:
3,You must import class MyPackage.P1 before you define class P2;
or declare class P2 like this:
4,You must define a method named main in file P2.java if you want to run it.
5,You must make sure the current directory "." in your system's CLASSPATH variable.
------------------
Java lover from hell!
[This message has been edited by Metal Zhang (edited August 17, 2001).]