Book mentions sub package cannot be imported

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
abashdesh
Posts: 14
Joined: Sat Jul 17, 2021 8:22 am
Contact:

Book mentions sub package cannot be imported

Post by abashdesh »

But can it be created in the first place? I mean how can we create a sub package (if at all), what statement can we write if only one package statement is allowed in a class?

Referring to the book - OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals iZ0-815 - Chapter 2 - The Import Statement > What you cannot do section

Thanks!

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Book mentions sub package cannot be imported

Post by admin »

Right, if you read further, you will notice that the next line says, "there is no concept of subpackage in Java".

That is why, in the first line also, the word subpackage is within double quotes.
If you like our products and services, please help us by posting your review here.

abashdesh
Posts: 14
Joined: Sat Jul 17, 2021 8:22 am
Contact:

Re: Book mentions sub package cannot be imported

Post by abashdesh »

Ok thank you.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 39 guests