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
noeloo
Posts: 61
Joined: Sat Feb 15, 2020 8:56 am
Contact:

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

Post by noeloo »

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: 10036
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.
If you like our products and services, please help us by posting your review here.

cjgiron
Posts: 14
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?

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

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

Post by admin »

If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: marpiva and 54 guests