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!
Book mentions sub package cannot be imported
Moderator: admin
-
- Posts: 14
- Joined: Sat Jul 17, 2021 8:22 am
- Contact:
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Book mentions sub package cannot be imported
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.
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.
-
- Posts: 14
- Joined: Sat Jul 17, 2021 8:22 am
- Contact:
Re: Book mentions sub package cannot be imported
Ok thank you.
Who is online
Users browsing this forum: No registered users and 51 guests