Karsten Thoms

Greenhorn
+ Follow
since Apr 05, 2021
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Karsten Thoms

I'm not aware of it. I ordered the enthuware.com mock exams, they are ~10$ and worth it for preparation. Additionally I worked through the study guide before.
After submitting the post, I saw the thread https://coderanch.com/t/737834/certification/Review-Sybex-CSG-Kindle-Edition
So this is a double-post, please apologize for the redundant post.
The module "animal" exclusively exports the package animal.behavior to module dog. The "requires transitive" won't re-export this package to modules requiring module dog.

https://docs.oracle.com/javase/specs/jls/se12/html/jls-7.html#jls-7.7.2
"If an exports or opens directive has a to clause, then the directive is qualified; otherwise, it is unqualified. For a qualified directive, the public and protected types in the package, and their public and protected members, are accessible solely to code in the modules specified in the to clause."

Thus, to make "requires transitive" work, it would be required to remove the "to" clause in animal.

Question 17, answer C: It is just that method references were not mentioned until then in the book (coming in next chapter), so it may not be used as answer before it was explained.
Typo: depreciation => deprecation