Could you provide some examples of the rules in the explanation, so they are easier to remember? I tried to look for them in JLS, but didn't find much about Java standard modules.
For example this one:
A standard module may contain both standard and non-standard API packages. If a standard module exports a standard API package then the export may be qualified; if a standard module exports a non-standard API package then the export must be qualified.
So is there any standard module which actually exports non-standard API package? And what is the purpose of it?
About Question enthuware.ocpjp.i.v11.2.3009 :
Moderator: admin
-
- Posts: 61
- Joined: Sat Feb 15, 2020 8:56 am
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3009 :
No, a standard module won't "export" non-standard module.
A standard module may export a non-standard package but to only to another module (i.e it must be a qualified export).
You can see the details at http://openjdk.java.net/jeps/200
For examples, just check the module definition of any standard jdk module.
A standard module may export a non-standard package but to only to another module (i.e it must be a qualified export).
You can see the details at http://openjdk.java.net/jeps/200
For examples, just check the module definition of any standard jdk module.
If you like our products and services, please help us by posting your review here.
-
- Posts: 14
- Joined: Fri Sep 09, 2022 5:03 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3009 :
Hi Admin,
How do you qualify an export?
How do you qualify an export?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3009 :
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: marpiva and 54 guests