Loading…
Loading…
Ten exam-style questions on module-info.java directives: exports and qualified exports, what an exported package exposes, requires, requires transitive and implied readability, requires static, duplicate and cyclic requires, opens and open modules, with explanations.
Practice questions for the article Java Module Declarations: requires, requires transitive, exports and opens.
Every compile and run result below was checked with real modules. Aim for at least 8 out of 10.
Quiz path: step 85. Take the quizzes in this order, after reading each article.
Previous quiz: Your First Java Modules (OCP 21)
Next quiz: Java Module Services (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.