GoConqr has a new look! Let us know what you think.

Quiz

Questões - Modular Deployment

Luis Felipe Guariento 5 questions

Take the quiz

Questions in this quiz (5)

  1. 1What is pluggability?
    1. AThe ability to build modular components which cannot be easily reused in applications.
    2. BCreate components such that the Application Assembler combines it all together.
    3. CThe ability to build modular components which can be easily reused in applications.
    4. DNone of the options.
  2. 2State whether true or false:
    " <servlet-name> is mandatory in a deployment descriptor but it is an opcional element in the @WebServlet annotation.
    1. ATrue
    2. BFalse
  3. 3Consider this code:

    @WebServlet(
    urlPatterns={"/whizlabs.do"},
    value={"/newservlet"}
    )

    What is wrong with this code?
    1. ANothing is wrong with this code.
    2. B"urlPattern" should only be used with "description".
    3. C"value" should only be used with "asyncSupported".
    4. D"urlPatterns" and "value" should not be used together in @WebServlet annotation.
  4. 4What are the two requirements for the web fragments to be found by the container?
    Select two options.
    1. AThe JAR should be deployed to /WEB-INF/lib directory of the web application.
    2. BThe fragment must be placed in it's own JAR file but outside the META-INF/web-fragment.xml file.
    3. CThe JAR should be deployed to /WEB-INF/ directory of the web application
    4. DThe fragment must be placed in it's own JAR file inside the META-INF/web-fragment.xml file.
  5. 5If both, the deployment descriptor and annotations are present in a web application, which takes precedence?
    1. ADeployment Descriptor.
    2. BAnnotations.

Information

Description
Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz on Questões - Modular Deployment, created by Luis Felipe Guariento on 29/03/2018.
Language
Português
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?