Tag Archives: correct

Given: (Exhibit) Which three are correct? (Choose three.)

Given:Which three are correct? (Choose three.) A. f2.foo(li) prints Bonjour le monde! B. b1.foo(li) prints Hola Mundo! C. f2.foo(li) prints Hello world! D. b1.foo(li) prints Hello world! E. f2.foo(li) prints Hola Mundo! F. f1.foo(li) prints Bonjour le monde! G. b1.foo(li) prints Bonjour le monde! H. f1.foo(li) prints Hello world! I. f1.foo(li) prints Hola Mundo! Correct Answer: B,D,F

Which two statements are correct about modules in Java? (Choose two.)

Which two statements are correct about modules in Java? (Choose two.) A. module-info.java can be placed in any folder inside module-path. B. By default, modules can access each other as long as they run in the same folder. C. java.base exports all of the Java platforms core packages. D. A module must be declared in module-info.java file. E.… Read More »

Examine these module declarations: (Exhibit) Which two statements are correct? (Choose two.)

Examine these module declarations:Which two statements are correct? (Choose two.) A. The ServiceProvider module should export the com.myimpl package. B. The placement of the com.example.api API in a separate module, ServiceAPI, makes it easy to install multiple provider modules. C. The Consumer module should require the ServiceProvider module. D. The ServiceProvider module does not know the identity of… Read More »

Which two statements are correct about modules in Java? (Choose two.)

Which two statements are correct about modules in Java? (Choose two.) A. A module must be declared in module-info.java file. B. java.base exports all of the Java platforms core packages. C. module-info.java can be placed in any folder inside module-path. D. By default, modules can access each other as long as they run in the same folder. E.… Read More »