From the course: Java SE 21 Developer (1Z0-830) Cert Prep

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Question deep dive

Question deep dive

- So, time for a question deep dive. What'd you make of this one? Right, so your team is doing a top-down approach migration for a project, and we want to know which are true after completion of the first step? Well, the first step in a top-down migration is essentially going to be to take the jar file that contains your main method and turn that into a module. In the process of doing that, because you are trying to turn it into an actual module complete with requires and exports and so forth in a module info, it can't talk to code that is on the class path any longer. Because it can't talk to code on the class path, the expectation will be that the next level, if you will, of jar files will be turned into automatic modules so that you can say you requires them. However, unless you have only one kind of level of these jar files, the idea that all the leaf jars will now be automatic modules is premature. It is quite…

Contents