Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.3009 :

Posted: Tue Sep 29, 2020 3:14 pm
by Deleted User 6318
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?

Re: About Question enthuware.ocpjp.i.v11.2.3009 :

Posted: Tue Sep 29, 2020 7:42 pm
by admin
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.

Re: About Question enthuware.ocpjp.i.v11.2.3009 :

Posted: Wed Sep 21, 2022 5:43 pm
by cjgiron
Hi Admin,

How do you qualify an export?

Re: About Question enthuware.ocpjp.i.v11.2.3009 :

Posted: Thu Sep 22, 2022 11:00 am
by admin