Quiz
Servion - Java Questionnaire
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (15)
1Can an Interface have an inner class?
- AYes
- BNo
2Can we define private and protected modifiers for variables in interfaces?
- AYes
- BNo
3What is Externalizable?
- AExternalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)
- BExternalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has One methods, writeExternal(ObjectOuput out).
- CExternalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has One methods readExternal(ObjectInput in)
4What modifiers are allowed for methods in an Interface?
- AOnly abstract modifiers are allowed for methods in interfaces.
- BOnly public and abstract modifiers are allowed for methods in interfaces.
- COnly public modifiers are allowed for methods in interfaces.
5What are the JSP tag?
- ADirectives
Declarations - BScriplets
Expressions - CDirectives
Declarations
Scriplets
Expressions
- ADirectives
6What are JSP Directives?
- Apage Directives <%@page language=”java” %>
include Directives: <%@ include file=”/header.jsp” %> - Btaglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %>
include Directives: <%@ include file=”/header.jsp” %> - Cpage Directives <%@page language=”java” %>
taglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %> - D1. page Directives <%@page language=”java” %>
2. include Directives: <%@ include file=”/header.jsp” %>
3. taglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %>
- Apage Directives <%@page language=”java” %>
7What are the phases of the servlet life cycle?
- AThe life cycle of a servlet consists of the following phases:
Servlet class loading
Servlet instantiation
the init method
Request handling (call the service method)
Removal from service (call the destroy method) - BThe life cycle of a servlet consists of the following phases:
Servlet class loading
Servlet instantiation
Removal from service (call the destroy method) - CThe life cycle of a servlet consists of the following phases:
Servlet class loading
the init method
Request handling (call the service method)
Removal from service (call the destroy method)
- AThe life cycle of a servlet consists of the following phases:
8What are the components of the J2EE application?
- AClient Components (application clients and applets)
Web Components (JavaServer Pages and Java Servlets)
Business Components (Enterprise JavaBeans)
Resource Adapter Components - BWeb Components (JavaServer Pages and Java Servlets)
Business Components (Enterprise JavaBeans)
Resource Adapter Components - CClient Components (application clients and applets)
Web Components (JavaServer Pages and Java Servlets)
Business Components (Enterprise JavaBeans) - DClient Components (application clients and applets)
Web Components (JavaServer Pages and Java Servlets)
Resource Adapter Components
- AClient Components (application clients and applets)
9Servlet is pure java object or not?
- AYes
- BNo
10What are the benefits of ORM?
- AProductivity
Maintainability
Performance
Vendor independence - BMaintainability
Performance
Vendor independence - CProductivity
Maintainability
Performance
- AProductivity
11ActionServlet, RequestProcessor and Action classes are the components of Controller?
- AYes
- BNo
12There are seven core modules in spring:
The Core container module
O/R mapping module (Object/Relational)
DAO module
Application context module
Aspect Oriented Programming
Web module
MVC module- ATrue
- BFalse
13Is Singleton default scope in Spring?
- ATrue
- BFalse
14How many types of memory areas are allocated by JVM?
- A3
- B5
- C4
- D7
15Can we execute a program without main() method? And Can we overload main() method?
- AYes
- BNo
- CMayBe
Information
- Description
- Servion test phase 1
- Author
- rohit.benedict
- Language
- English
- Views
- 1,789
- Tags
- Rating
- 4.5 out of 5 · 2 ratings Rate this quiz