Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What directive is used to specify module dependencies?
Think about what you need to indicate when a module uses another.
What filename must be present for Java modules?
It is the descriptor file for the module.
What file must a Java module include at its root?
Think about the naming convention for descriptor files.
True or False: The 'exports' directive allows access to any package within the module.
Consider how specific the module's access controls are.
Design a new module called 'com.logger' that requires 'java.logging' and exports a package called 'com.logger.api'. Write the corresponding module-info.java file.
Consider which functionalities you need from java.logging.
Explain the impact of using 'exports' vs not using it within module-info.java on module accessibility.
Think about internal APIs versus public APIs.
5 more questions in this section. Enroll free to practise them all.
Enroll free