answer : ADE
A. module-info.java connot be empty
correct
minimal module descriptor example
module modulename {
}
The module declaration’s body can be empty but not a file
D correct
A module’s self-description is expressed in its module declaration (module-info.java)
E. correct
the Java 11 module java.base consists of the package called java.lang
D & E are correct.
A incorrect because module-info.java can be empty.
See: https://www.oracle.com/corporate/features/understanding-java-9-modules.html#:~:text=The%20module%20declaration's%20body%20can,a%20file%20named%20module%2Dinfo.
A is correct because module-info.java cannot be empty, at minimum, it must specify the name of the module, like for example: module com.a { } . D is also correct because: "module declaration, a file with the name module-info.java that defines all properties of a module" (from https://dev.java/learn/modules/intro/). E is not correct because here is written "all of the Java platforms"- these are Java SE, Java ME, Java EE. So, the correct answers are: A and D...I think..
A is correct because module-info.java cannot be empty, at minimum, it must specify the name of the module, like for example: module com.a { } . D is also correct because: "module declaration, a file with the name module-info.java that defines all properties of a module" (from https://dev.java/learn/modules/intro/). E is not correct because here is written "Java platforms"- these are Java SE, Java ME, Java EE. So, the correct answers are: A and D...I think..
A module-info.java file is used to declare a module and its dependencies. It must contain at least one module declaration, so statement A is incorrect. The module-info.java file must be placed in the root directory of the module, so statement B is incorrect. Modules do not have access to each other by default, regardless of their location, so statement C is incorrect. The java.base module exports all of the core packages of the Java platform, so statement E is correct.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
1 month, 4 weeks agoASPushkin
1 month, 4 weeks agoASPushkin
1 month, 4 weeks agod7bb0b2
1 year, 1 month agoduydn
1 year, 1 month agoRoxyFoxy
1 year, 3 months agoRoxyFoxy
1 year, 3 months agoStavok
1 year, 5 months agobelal97
1 year, 6 months agotmuralimanohar
1 year, 6 months ago