duplicate word in bolded text aboveRemember that one modular jar contains only one module. So, moduleA.jar will contain only one module.
If moduleA depends only only standard JDK modules, then jdeps will print them.
However, if this module depends on any other application module (for example, moduleB), jdeps won't find it and will therefore fail.
About Question enthuware.ocpjp.ii.v11.2.3437 :
Moderator: admin
-
- Posts: 33
- Joined: Tue Jun 19, 2018 10:27 am
- Contact:
About Question enthuware.ocpjp.ii.v11.2.3437 :
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3437 :
Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 28
- Joined: Sun Sep 11, 2022 3:55 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3437 :
is the options second not valid as we have used --list-deps?
and if we had not used would the flag, will the option 2 be correct?
also why option 3 is incorrect?
It will list all the standard JDK modules on which moduleA depends.
I ran the command on my modular jar and got the standard module java.base
and if we had not used would the flag, will the option 2 be correct?
also why option 3 is incorrect?
It will list all the standard JDK modules on which moduleA depends.
I ran the command on my modular jar and got the standard module java.base
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3437 :
Option 2 is not valid because it will not list all the packages.
Option 3 is incorrect because it will list all the modules and not just standard jdk modules. Since all modules includes jdk modules, option 1 is preferred.
Option 3 is incorrect because it will list all the modules and not just standard jdk modules. Since all modules includes jdk modules, option 1 is preferred.
If you like our products and services, please help us by posting your review here.
-
- Posts: 28
- Joined: Sun Sep 11, 2022 3:55 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3437 :
and if we had not used the flag --list-deps, will the option 2 be correct?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3437 :
Yes, you can try out something like jdeps TestClass.class and see the output.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 52 guests