From

Note

Question doesn't state how are we compiling? Like even if we are in the directory /my/directory and the package statement in the class is package my.directory.named.A and if we compile it as javac named/a/*.java. it will still work. but the answer is explaining only one option,

Share this highlight

Get Instant Access Now

Unlock the rest of this book
and 30,000 other books and videos

By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service.