Tag Archives: correct
Given: (Exhibit) Which one is 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
Given: (Exhibit) Which two method implementations are correct, when inserted independently in line 1?
Which is the correct order of possible statements in the structure of a Java class file?
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 three initialization statements are correct? (Choose three.)
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 »
Which two statements are correct about try blocks? (Choose two.)
Which two statements are correct about try blocks? (Choose two.) A. A try block can have more than one catch block. B. A try block must have a catch block and a finally block. C. A finally block in a try-with-resources statement executes before the resources declared are closed. D. catch blocks must be ordered from generic to… Read More »