Quiz
Questões - Modular Deployment
Questions in this 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.- ATrue
- BFalse
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.
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.
- Author
- Luis Felipe Guariento
- Language
- Português
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz