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

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

Moderator: admin

Post Reply
Deleted User 6318

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

Post 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?

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

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

Post 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.

cjgiron
Posts: 13
Joined: Fri Sep 09, 2022 5:03 pm
Contact:

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

Post by cjgiron »

Hi Admin,

How do you qualify an export?


Post Reply

Who is online

Users browsing this forum: No registered users and 118 guests