Quiz
Questões - Modular Deployment
Perguntas do quiz (5)
1What is pluggability?
- AThe ability to build modular components which cannot be easily reused in applications.
- BCreate components such that the Application Assembler combines it all together.
- CThe ability to build modular components which can be easily reused in applications.
- DNone of the options.
2State whether true or false:
" <servlet-name> is mandatory in a deployment descriptor but it is an opcional element in the @WebServlet annotation.- AVerdadeiro
- BFalso
3Consider this code:
@WebServlet(
urlPatterns={"/whizlabs.do"},
value={"/newservlet"}
)
What is wrong with this code?- ANothing is wrong with this code.
- B"urlPattern" should only be used with "description".
- C"value" should only be used with "asyncSupported".
- D"urlPatterns" and "value" should not be used together in @WebServlet annotation.
4What are the two requirements for the web fragments to be found by the container?
Select two options.- AThe JAR should be deployed to /WEB-INF/lib directory of the web application.
- BThe fragment must be placed in it's own JAR file but outside the META-INF/web-fragment.xml file.
- CThe JAR should be deployed to /WEB-INF/ directory of the web application
- DThe fragment must be placed in it's own JAR file inside the META-INF/web-fragment.xml file.
5If both, the deployment descriptor and annotations are present in a web application, which takes precedence?
- ADeployment Descriptor.
- BAnnotations.
Informações
- Descrição
- Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz sobre Questões - Modular Deployment, criado por Luis Felipe Guariento em 29-03-2018.
- Idioma
- Português
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz