Monday, 28 January 2013

1z0-899 Question Part 5 of 5 Updated 2013


                                                                         PART 5 OF 5 

QUESTION 1

In ServletContext.getNamedDispatcher(string arg0) arg0 is the

A. url of a servlet relative to the ServletRequest
B. url of a servlet relative to the Context
C. name of a servlet
D. absolute url to any servlet in any Context

Correct Answer: B


QUESTION 2

When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "/url"
within the same Servlet Context which of the following API would you use?

A. ASyncContext.dispatch();
B. AsyncContext.dispatch("/url");
C. AsyncContext.dispatch(servletContext, "/url");
D. AsyncContext.start(runnable);
E. RequestDispatcher.fotward("/url");
F. RequestDispatcher.forward(servletContext, "/url");
G. RequestDispatcher.include("/url");

Correct Answer: AC

QUESTION 3

Which describes a trigger that causes a call to an AsyncListener?

A. Completion of processing
B. Receipt of a new request from the same client
C. Addition of a new filter to the processing stream for this request
D. Completion of each timer interval

Correct Answer: B


QUESTION 4

You need to create a JavaBean object that is used only within the current ISP page. It must NOT be accessible to any other page including those that this page might import. Which JSP standard action < .in accomplish this goal?

A. <jsp:useBean id = `pageBean' type = `com.example.MyBean' />
B. <jsp:useBean id = `pageBean' class = `com.example.MyBean' />
C. <jsp:makeBean id = `pageBean' type = `com.example.MyBean' />
D. <jsp:makeBean id = `pageBean' class = `com.example.MyBean' />
E. <jsp:useBean id = `pageBean' class = `com.example.MyBean' />
F. <jsp:makeBean id = `pageBean' class = `com.example.MyBean' />

Correct Answer: B

QUESTION 5

Given the JavaBean class:
public class MyBean {
private Boolean roasted = false;
public MyBean () {}
public Boolean isRoasted () { returned roasted }
public void setRoasted (Boolean roasted) { this.roasted = roasted; ] }
Assume a controller has created an instance of this bean, called setRoasted (true), and inserted the bean into
the application scope using the name "myBean".

A JSP contains these two tags:
<jsp: useBean id = "aBean" class = "MyBean" scope = "page" \ /> <jsp: getProprty name = "aBean" property
= "roasted" \ /> 

Which is true?

A. the page will include the output false
B. the page will include the output
C. the page will report that the property roasted does not exist
D. the page will report that the syntax of the useBean tag is incorrect
E. the page will report that the syntax of the getProperty tag ls incorrect

Correct Answer: E

QUESTION 6

A developer chooses to avoid using singieThreadModel but wants to ensure that data If; updated in a thread
safe manner. Which two can support this design goal? (Choose two)

A. Store the data in a local variable.
B. Store the data in an instance variable.
C. Store the data in the Httpsession object.
D. Store the data in the sarvletContext object.
E. Store the data in the ServletRequest object.

Correct Answer: AE

QUESTION 7

You have a use in your web application that adds several session-scoped attributes. At the end of the use case, one of these objects, the manage attribute, is removed and then it needs to decide which of the other session-scoped attributes to remove. How can this goal be accomplished?

A. The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
B. The object of the manager attribute should implement the HttpSessionListenar and it should call the
removeAttribute method on the appropriate session attributes.
C. The object of the manager attribute should implement the HttpSessionBindingListener rind it should call
the deleteAttribute method on the appropriate session attributes.
D. The object of the manager attribute should implement the HttpsessionListener and it should call the deleteAttribute method on the appropriate session attributes.

Correct Answer: A

QUESTION 8

The Squeaky Beans Inc. shopping application was initially developed for a non-distributed environment. The company recently purchased the Acme Application Server, which supports distributed Httpsession objects. When deploying the application to the server, the doployer marks it as distributable in the web application deployment descriptor to take advantage of this feature. Given this scenario, which two must be true?
(Choose two)

A. The J2EE web container must support migration of objects that implement serializable.
B. The J2EE web container must use the native JVM Serialization mechanism for distributing HttpSesaion objects.
C. As per the specification, the J2EE web container ensures that distributed Httpsassion objects will be stored in a database.
D. Storing references to Enterprise JavaBeans components in the HttpSession object might NOT supported by J2EE web contain.

Correct Answer: AD

QUESTION 9

Given an HttpServletRequest request and an httpServletResponse response:

41. HttpSession session = null;
42. / / insert code here
43. if (session = = null) {
44. / / do something if session does not exist
45. } else {
46. / / do something if session exists
47. }

To implement the design intent, which statement must be inserted at line 42?
A. session = response.getSession ();
B. session = request.getSession ();
C. session = request.getSession (true);
D. session = request.getSession (false);
E. session = request.getSession ("jsessionid");

Correct Answer: D

CLICK FOR PART 1 OF 5 1Z0-899 DUMPS 2013

3 comments:

  1. Hi

    I am planning to write the exam on 4th Feb 2013.
    Is this valid dump to pass the exam?
    Pls anyone reply me?

    ReplyDelete
  2. Hi Admin,

    I have already scheduled for 1Z0-899 exam and the exam is scheduled on 31st March. I can't even change the exam date now.Please tell me is this dump is valid to pass the exam?
    Pls anyone tell who recently took the exam?

    ReplyDelete
  3. Hi Admin,

    I am planning to write the exam on 16th April 2013.
    Is this valid dump to pass the exam?
    Pls anyone reply who recently took the exam?

    ReplyDelete