Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

Servlets - Advanced Java Test - Questions...???

Servlets - Advanced Java Test - Questions...???

1) In which advantage of servlet, Servlets are managed by JVM so no need to worry about memory leak, garbage collection etc.?

2) In the following statements identify the disadvantages of CGI?

3) Servlet technology is used to create web application?

4) In HTTP Request Which Asks for the loopback of the request message, for testing or troubleshooting?

5) In HTTP Request method Get request is secured because data is exposed in URL bar?

6) In the HTTP Request method which is non-idempotent?

7) Give the examples of Application Server from the following?

8) Abbreviate the term MIME?

9) Which packages represent interfaces and classes for servlet API?

10) The web container maintains the life cycle of a servlet instance,give the lifecycle of a servlet?

11) The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file?

12) In RequestDispacher which method is used to sends the same request and response objects to another servlet?

13) An object of Which is created by the web container at time of deploying the project?

14) An attribute in servlet is an object that can be set, get or removed from one of the following scopes?

15) How many techniques are used in Session Tracking?

16) Which cookie it is valid for single session only; it is removed each time when user closes the browser?

17) Which object of HttpSession can be used to view and manipulate information about a session, such as the?

18) Which methods are used to bind the objects on HttpSession instance and get the objects?

19) Which class provides stream to read binary data such as image etc. from the request object?

20) These methods doGet(),doPost(),doHead,doDelete(),deTrace() are used in?

21) Sessions is a part of the SessionTracking and it is for maintaining the client state at server side?

22) In Session tracking which method is used in a bit of information that is sent by a web server to a browser and which can later be read back from that browser?

23) Using mail API we cannot send mail from a servlet?

24) Servlets handle multiple simultaneous requests by using threads?

25) Which type of ServletEngine is a server that includes built-in support for servlets?

26) Connection Pooling Class manages no of user requests for connections to improve the performance?

27) Which of these ways used to communicate from an applet to servlet?

28) Web server is used for loading the init() method of servlet?

29) Which class can handle any type of request so it is protocol-independent?

30) In Servlet Terminology what provides runtime environment for JavaEE (j2ee) applications...

>>> --- Full Questions in Attached file --- <<<

Show more
ANSWER

Tutor has posted answer for $10.00. See answer's preview

$10.00

************ *** Answers in attached **** *** ************

Click here to download attached files: Answers_Servlets - Advanced Java Test.docx
or Buy custom answer
ANSWER

Tutor has posted answer for $10.00. See answer's preview

$10.00

******** * ******** **** *****

1)

**

***** ********* ** ******* ******** *** managed by *** ** ** **** ** ***** ***** memory **** ******* ********** ***** ** Better

performance

** ************ **

******* **

******* *******

** *******

**

In

*** ********* **********

********

***

disadvantages

**

*****

** ** ****** of ******* increases ** ***** **** ****

***

******* response ** *** **** request ** ****** * ******* *** Web ******

** ******* to start ********** ** It **** platform ********* language ** * *** perl **

*** ********* above ******* ** All ********* above ** *******

********** ** **** **

******

web

************* A) True ** ******

*******

**

True

** ** HTTP ******* Which **** *** *** loopback

**

*** *******

******* ***

*******

or

troubleshooting? A) PUT

**

OPTIONS ** ******* ** ****** ANSWER: ** ****** ** ** HTTP ******* ****** Get ******* ** *******

*******

data **

******* **

*** bar?

** True

**

False

******* ** False

**

In

***

HTTP

Request ****** ***** ** non-idempotent? A) **** ** ***** ** **** A & ** ** None

**

the above

******* B)

*****

**

**** *** ********

**

Application

******

**** the *********** ** ******* ** ******* ** ******

**

Weblogic **

**** C

***** ** ANSWER: ** Both

* & ** 8) Abbreviate

***

****

******

**

********** ******** Mail

**********

**

************

********

****

Extension ** ******** information **** ********** ** **** ** the

******

******* **

Multipurpose ********

**** **********

** Which

packages ********* ********** *** *******

***

*******

API?

A)

************* B) javaxservlethttp C) **** *

&

**

**

None ** *** ****** *******

**

**** A ***** ** ***

*** *** container ********* ***

life cycle ** * *******

************ *** lifecycle ** a

*********

**

Servlet class is ******* B) Servlet

********

is

********

** initServicedestroy ****** is ******** ** All ********* ****** ANSWER:

D)

All *********

above 11)

*** ************** method ** *******************

********* *** ** **** **

redirect

********

** ******* ******** ** *** **

*******

jsp

**

**** ****** ** ***** ** False ******* ** ***** *** ** RequestDispacher ***** method ** **** **

*****

*** **** ******* *** ********

objects ** ******* ********* A)

********** B) *************** ** ****

A ***** ** **

****

**

*** ****** ******* ** **********

***

**

******

** Which is created by *** *** ********* at time of deploying *** ********* ** ServletConfig ** *************** ** Both * ***** ** D)

****

** the

****** *******

**

***************

*** ** attribute

**

servlet

**

** object that *** ** *** *** or ******* **** one ** the ********* ******** ** ******* ******

B)

******* ******

** ***********

****** ** *** ********* ******

******* ** All ********* ******

***

***

**** ********** are

****

**

*******

**********

**

4 ** 3 C) ** ** ** ******* ** 4 *** ***** ****** ** ** valid for

******

******* *****

** **

removed **** **** **** user

closes *** ********* ** **********

cookie

**

************** cookie **

Both

*

&

B ** **** ** *** ****** ******* ** Non-persistent ******* 17) Which ****** ** HttpSession can ** used ** view ***

**********

information about a

******* **** **

***** A) session

identifier B) ******** *****

**

****

******** time D) All *********

******

*******

**

*** mentioned above *** Which methods are **** to

****

*** *******

** ***********

instance ***

*** ***

*********

**

************* ** getAttribute

**

****

A

&

**

D) None ** *** ****** ******* C) **** * & ** *** ***** class provides ****** ** **** ****** data

****

as ***** ***

from the *******

object? ** ServltInputStream B) ********************

** **** A ***** B

**

****

of the above *******

**

******************

***

These

methods

**************************************** *** **** **** ** ******** ********* ** HttpServlets C) Both * & ** ** None of the above

ANSWER:

B) ************* ***

******** is *

**** of *** SessionTracking

and it ** ***

***********

***

****** ***** ** ****** ******

A)

*****

**

******

*******

** ***** *** ** Session ******** ***** ****** ** **** ** a *** ** information that

**

**** **

* ***

****** ** a ******* ***

***** *** ***** ** ****

back

from

**** browser? A) ************ ** ***

**********

**

********

D)

Hidden

**** ******* ******* ** ******** *** Using mail *** ** ****** **** **** **** * servlet? A)

*****

** False

******* **

****** 24) Servlets handle ********

************ requests ** ***** *********

**

*****

B) ****** *******

**

***** *** ***** type ** ************* **

*

server **** includes

******** *******

*** ********** ** ****** **************

** ******** ************** ** **********

**************

** **** **

***

******

*******

** ********** ************** *** ********** Pooling ***** ******* no ** user requests *** *********** ** improve the ************* A)

*****

** ******

******* A)

*****

27)

***** of these

****

****

**

***********

from

** ****** ** servlet? A) RMI Communication ** HTTP ************** ** Socket ************** ** *** ********* ****** ******* ** *** ********* ****** *** *** ****** is **** *** ******* the init() method **

*********

** *****

B) ****** *******

** True

*** ***** class ***

******

***

type ** request

so

it

is

protocol-independent? ** GenericServlet ** HttpServlet ** **** A & ** D)

****

of ***

above *******

**

**************

30) In Servlet

***********

****

********

*******

***********

*** ****** ****** applications ** ******** **** ********** ****

***

given *******

1 Life

Cycle

***********

* ************* ********

*

******

********

* ******** etc ** ******* B) Webserver C) Container ** Application ******* ANSWER: **

*********

Click here to download attached files: Advanced Java Test Solution.docx
or Buy custom answer
ANSWER

Tutor has posted answer for $15.00. See answer's preview

$15.00

*******

*** ********* ******

True

******

******

*****

**** V & D

************ ******** Mail **********

**** A & **

All ********* ******

*****

forward()

***************

All mentioned ******

**

************** *******

All ********* above

**** * ***** **

ServltInputStream

HttpServlets

*****

Cookies

******

*****

********** **************

*****

All ********* ******

*****

***************

*********

or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question