Oracle 1Z1-899 Actual Free Exam Questions & Community Discussion
Which code snippet specifies the metadata for a servlet with:
(i) url mapping "/mytest"'
(ii) Initial parameter with name "debug" and value "10"'
(iii) Support asynchronous operation?
(i) url mapping "/mytest"'
(ii) Initial parameter with name "debug" and value "10"'
(iii) Support asynchronous operation?
Correct Answer: C
Vote an answer
Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "File not found." An error page has been configured for this JSP page.
Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism, and outputs the message "File not found" in the response?
Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism, and outputs the message "File not found" in the response?
Correct Answer: A
Vote an answer
Which annotation specifies the metadata as a javax.servlet.http.HttpSessionListener?
Correct Answer: C
Vote an answer
You are building a web application with a scheduling component. On the JSP, you need to show the current date, the date of the previous week, and the date of the next week.
To help you present this information, you have created the following EL functions in the 'd' namespace:
* Name : curData; signature: java.util.utilDate CurrentDate()
* Name : curData; signature: java.util.utilDate addweek (java.util.Date, int)
* Name: dateString; signature: java.util.String getDataString (jave.util.Data) Which EL code snippet will generate the string for the previous week?
To help you present this information, you have created the following EL functions in the 'd' namespace:
* Name : curData; signature: java.util.utilDate CurrentDate()
* Name : curData; signature: java.util.utilDate addweek (java.util.Date, int)
* Name: dateString; signature: java.util.String getDataString (jave.util.Data) Which EL code snippet will generate the string for the previous week?
Correct Answer: D
Vote an answer
Your web application uses a simple architecture in which servlets handle requests and then forward to a JSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation. This information must NOT be accessible to any other servlet, JSP or session in the webapp.
Which two techniques can you use to accomplish this goal? (Choose two)
Which two techniques can you use to accomplish this goal? (Choose two)
Correct Answer: A,D
Vote an answer
Refer to the Exhibit.

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP.
Which two output the name of the product in the response? (Choose two)

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP.
Which two output the name of the product in the response? (Choose two)
Correct Answer: C,E
Vote an answer
Your web application requires the ability to load and remove web files dynamically to the web container's file system? Which two HTTP methods are used to perform these actions? (Choose two)
Correct Answer: B,F
Vote an answer
Which of the following are attributes of the annotation javax.servlet.annotation.WebFilter?
(i) Name
(ii) servletNames
(iii) urlPatterns
(iv) dispatcherTypes
(v) supportAsync
(i) Name
(ii) servletNames
(iii) urlPatterns
(iv) dispatcherTypes
(v) supportAsync
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
A web browser need NOT always perform a complete request for a particular page that it suspects might NOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partial response from the web server; this response includes information, such as the Last-Modified date but NOT the body of the page.
Which HTTP method will the browser use to retrieve such a partial response?
Which HTTP method will the browser use to retrieve such a partial response?
Correct Answer: E
Vote an answer
0
0
0
10
