Servion - Java Questionnaire

Description

Servion test phase 1
rohit.benedict
Quiz by rohit.benedict, updated more than 1 year ago
rohit.benedict
Created by rohit.benedict almost 9 years ago
1730
1

Resource summary

Question 1

Question
Can an Interface have an inner class?
Answer
  • Yes
  • No

Question 2

Question
Can we define private and protected modifiers for variables in interfaces?
Answer
  • Yes
  • No

Question 3

Question
What is Externalizable?
Answer
  • 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)

Question 4

Question
What modifiers are allowed for methods in an Interface?
Answer
  • 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.

Question 5

Question
What are the JSP tag?
Answer
  • Directives Declarations
  • Scriplets Expressions
  • Directives Declarations Scriplets Expressions

Question 6

Question
What are JSP Directives?
Answer
  • 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” %>

Question 7

Question
What are the phases of the servlet life cycle?
Answer
  • 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)

Question 8

Question
What are the components of the J2EE application?
Answer
  • 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

Question 9

Question
Servlet is pure java object or not?
Answer
  • Yes
  • No

Question 10

Question
What are the benefits of ORM?
Answer
  • Productivity Maintainability Performance Vendor independence
  • Maintainability Performance Vendor independence
  • Productivity Maintainability Performance

Question 11

Question
ActionServlet, RequestProcessor and Action classes are the components of Controller?
Answer
  • Yes
  • No

Question 12

Question
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
Answer
  • True
  • False

Question 13

Question
Is Singleton default scope in Spring?
Answer
  • True
  • False

Question 14

Question
How many types of memory areas are allocated by JVM?
Answer
  • 3
  • 5
  • 4
  • 7

Question 15

Question
Can we execute a program without main() method? And Can we overload main() method?
Answer
  • Yes
  • No
  • MayBe
Show full summary Hide full summary

Similar

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