JAVA CERTIFICATION QUESTION: Module definitions and automatic modules
=>The quiz experts explore the Java modular system and how it uses JAR files.
Imagine you have the following nonmodular JAR file containing the compiled ๐ด๐๐๐๐๐ class:
> ๐๐๐ -๐ก๐ฃ๐ ๐๐๐๐๐๐-๐๐๐๐๐๐-1.0.๐๐๐
๐๐ธ๐๐ด-๐ผ๐๐น/๐๐ด๐๐ผ๐น๐ธ๐๐.๐๐น
๐ด๐๐๐๐๐.๐๐๐๐ ๐
While you were developing the modular application,
you created a module called ๐๐๐๐๐๐ก containing the class ๐๐๐.๐๐๐๐.
The ๐๐๐๐๐๐ก module declares variables of the ๐ด๐๐๐๐๐ class type and instances of that class.
The ๐๐ธ๐๐ด-๐ผ๐๐น/๐๐ด๐๐ผ๐น๐ธ๐๐.๐๐น does not contain module-related attributes.
Which module definition (if any) allows you to compile the ๐๐๐๐๐๐ก module
using the nonmodular JAR file as an automatic module?
Choose one.
๐.
๐๐๐๐ข๐๐ ๐๐๐๐๐๐ก {
หห๐๐๐๐ข๐๐๐๐ ๐๐๐๐๐๐-๐๐๐๐๐๐;
หห๐๐ฅ๐๐๐๐ก๐ ๐๐๐;
}
๐.
๐๐๐๐ข๐๐ ๐๐๐๐๐๐ก {
หห๐๐๐๐ข๐๐๐๐ ๐๐๐๐๐๐.๐๐๐๐๐๐;
หห๐๐ฅ๐๐๐๐ก๐ ๐๐๐;
}
๐.
๐๐๐๐ข๐๐ ๐๐๐๐๐๐ก {
หห๐๐๐๐ข๐๐๐๐ ๐๐๐๐๐๐-๐๐๐๐๐๐-1.0;
หห๐๐ฅ๐๐๐๐ก๐ ๐๐๐;
}
๐.
๐๐๐๐ข๐๐ ๐๐๐๐๐๐ก {
หห๐๐๐๐ข๐๐๐๐ ๐๐๐๐๐๐-๐๐๐๐๐๐-1.0.๐๐๐;
หห๐๐ฅ๐๐๐๐ก๐ ๐๐๐;
}
๐. The animal-domain-1.0.jar file may not be used as an automatic module.
ยทฦ uoแดสdo sแด ษนวสsuษ สษวษนษนoษ วษฅ๊ ยทuoแดsnเน ษuo๊