About Question enthuware.ocpjp.v11.2.3427 :

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

Moderator: admin

Post Reply
61d14837
Posts: 13
Joined: Tue Jul 21, 2020 1:39 pm
Contact:

About Question enthuware.ocpjp.v11.2.3427 :

Post by 61d14837 »

Please confirm if I understand this concept correctly. In the real world, I would employ the top-down migration strategy because I don't have access to mysql-connector-java.jar The datalayer.jar may belong to the same company but another team could own that project.

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

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by admin »

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

gayanw
Posts: 4
Joined: Sun Jan 23, 2022 9:03 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by gayanw »

What if I modularize only the myapp.jar and leave data-layer and mysql-connector-java on the classpath. Will it work?

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

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by admin »

No, classes in modules cannot access classes from jars on classpath. Only automatic modules can do that. So, you need to use automatic modules. Please go through a good book to understand this concept. We recommend the modules chapter of Deshmukh's 1z0815 fundamentals
If you like our products and services, please help us by posting your review here.

gayanw
Posts: 4
Joined: Sun Jan 23, 2022 9:03 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by gayanw »

Thanks for the info.

aPerson
Posts: 17
Joined: Fri Aug 12, 2022 10:19 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by aPerson »

Does the question mean: how can you make myapp modularized with as few steps as possible, starting at the bottom? Would leaving mysql as it is, making datalayer automatic and myapp modularized be a good answer to that? Or is the premise of the question that mysql and datalayer should be modularized (either automatic or regular)?

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

Re: About Question enthuware.ocpjp.v11.2.3427 :

Post by admin »

The problem statement says that you have to use the bottom-up approach to modularize your app. If you use automatic modules then you are not using bottom-up approach (you are using top-down approach). The concept of automatic modules is created solely for the top-down approach.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 43 guests