Servion - Java Questionnaire

Descrição

Servion test phase 1
rohit.benedict
Quiz por rohit.benedict, atualizado more than 1 year ago
rohit.benedict
Criado por rohit.benedict quase 9 anos atrás
1719
1

Resumo de Recurso

Questão 1

Questão
Can an Interface have an inner class?
Responda
  • Yes
  • No

Questão 2

Questão
Can we define private and protected modifiers for variables in interfaces?
Responda
  • Yes
  • No

Questão 3

Questão
What is Externalizable?
Responda
  • Externalizable 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)
  • Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has One methods, writeExternal(ObjectOuput out).
  • Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has One methods readExternal(ObjectInput in)

Questão 4

Questão
What modifiers are allowed for methods in an Interface?
Responda
  • Only abstract modifiers are allowed for methods in interfaces.
  • Only public and abstract modifiers are allowed for methods in interfaces.
  • Only public modifiers are allowed for methods in interfaces.

Questão 5

Questão
What are the JSP tag?
Responda
  • Directives Declarations
  • Scriplets Expressions
  • Directives Declarations Scriplets Expressions

Questão 6

Questão
What are JSP Directives?
Responda
  • page Directives <%@page language=”java” %> include Directives: <%@ include file=”/header.jsp” %>
  • taglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %> include Directives: <%@ include file=”/header.jsp” %>
  • page Directives <%@page language=”java” %> taglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %>
  • 1. page Directives <%@page language=”java” %> 2. include Directives: <%@ include file=”/header.jsp” %> 3. taglib Directives <%@ taglib uri=”tlds/taglib.tld” prefix=”html” %>

Questão 7

Questão
What are the phases of the servlet life cycle?
Responda
  • The 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)
  • The life cycle of a servlet consists of the following phases: Servlet class loading Servlet instantiation Removal from service (call the destroy method)
  • The 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)

Questão 8

Questão
What are the components of the J2EE application?
Responda
  • Client Components (application clients and applets) Web Components (JavaServer Pages and Java Servlets) Business Components (Enterprise JavaBeans) Resource Adapter Components
  • Web Components (JavaServer Pages and Java Servlets) Business Components (Enterprise JavaBeans) Resource Adapter Components
  • Client Components (application clients and applets) Web Components (JavaServer Pages and Java Servlets) Business Components (Enterprise JavaBeans)
  • Client Components (application clients and applets) Web Components (JavaServer Pages and Java Servlets) Resource Adapter Components

Questão 9

Questão
Servlet is pure java object or not?
Responda
  • Yes
  • No

Questão 10

Questão
What are the benefits of ORM?
Responda
  • Productivity Maintainability Performance Vendor independence
  • Maintainability Performance Vendor independence
  • Productivity Maintainability Performance

Questão 11

Questão
ActionServlet, RequestProcessor and Action classes are the components of Controller?
Responda
  • Yes
  • No

Questão 12

Questão
There 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
Responda
  • True
  • False

Questão 13

Questão
Is Singleton default scope in Spring?
Responda
  • True
  • False

Questão 14

Questão
How many types of memory areas are allocated by JVM?
Responda
  • 3
  • 5
  • 4
  • 7

Questão 15

Questão
Can we execute a program without main() method? And Can we overload main() method?
Responda
  • Yes
  • No
  • MayBe

Semelhante

How well do you know GoConqr?
Sarah Egan
Java Week 5 Object Oriented Programming
Troy Bowlin
Java Practice 1
Ummm No
General Knowledge Quiz
Andrea Leyden
Revision Timetable
katy.lay
OCR Gateway GCSE P3 Revision Quiz
xhallyx
Ancient Roman Quiz
Rev32
The Engineered World - Unit 1
Yachtmasterhammond
How to revise
KimberleyC
Religious Studies Key Concepts
Keera
Core Spring 4.2 Certification Mock Exam
antoine.rey