1Z0-858 Exam Details

  • Exam Code
    :1Z0-858
  • Exam Name
    :Java Enterprise Edition 5 Web Component Developer Certified Professional
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :276 Q&As
  • Last Updated
    :Jul 12, 2026

Oracle 1Z0-858 Online Questions & Answers

  • Question 231:

    A developer has created a special servlet that is responsible for generating XML content that is sent to a data warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request from management to create several more of these data warehousing servlets. The developer is about to copy and paste the compression code into each new servlet. Which design pattern can consolidate this compression code to be used by all of the data warehousing servlets?

    A. Facade
    B. View Helper
    C. Transfer Object
    D. Intercepting Filter
    E. Composite Facade

  • Question 232:

    In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored as a List object in the catalog attribute of the webapp's ServletContext object. Which scriptlet code snippet gives you access to the catalog object?

  • Question 233:

    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: curDate; signature: java.util.Date currentDate() name: addWeek; signature: java.util.Date addWeek (java.util.Date, int) name: dateString; signature: java.util.String getDateString(java.util.Date)

    Which EL code snippet will generate the string for the previous week?

    A. ${d:dateString(addWeek(curDate(), -1))}
    B. ${d:dateString[addWeek[curDate[], -1]]}
    C. ${d:dateString[d:addWeek[d:curDate[], -1]]}
    D. ${d:dateString(d:addWeek(d:curDate(), -1))}

  • Question 234:

    Click the Exhibit button. Given the web application deployment descriptor elements:

    11.

    12.

    ParamAdder

    13.

    com.example.ParamAdder

    14.

    ...

    31.

    32.

    ParamAdder

    33.

    Destination

    34.

    ...

    55.

    56.

    Destination

    57.

    /dest/Destination

    58.

    What is the result of a client request of the Source servlet with no query string?

    A. The output "filterAdded = null" is written to the response stream.
    B. The output "filterAdded = addedByFilter" is written to the response stream.
    C. An exception is thrown at runtime within the service method of the Source servlet.
    D. An exception is thrown at runtime within the service method of the Destination servlet.

  • Question 235:

    Users of your web application have requested that they should be able to set the duration of their sessions. So for example, one user might want a webapp to stay connected for an hour rather than the webapp's default of fifteen minutes;

    another user might want to stay connected for a whole day.

    Furthermore, you have a special login servlet that performs user authentication and retrieves the User object from the database. You want to augment this code to set up the user's specified session duration.

    Which code snippet in the login servlet will accomplish this goal?

    A. User user = // retrieve the User object from the databasesession.setDurationInterval(user.getSessionDuration());
    B. User user = // retrieve the User object from the databasesession.setMaxDuration(user.getSessionDuration());
    C. User user = // retrieve the User object from the databasesession.setInactiveInterval(user.getSessionDuration());
    D. User user = // retrieve the User object from the databasesession.setDuration(user.getSessionDuration());
    E. User user = // retrieve the User object from the databasesession.setMaxInactiveInterval(user.getSessionDuration());
    F. User user = // retrieve the User object from the databasesession.setMaxDurationInterval(user.getSessionDuration());

  • Question 236:

    The sl:shoppingList and sl:item tags output a shopping list to the response and are used as follows:

    11.

    12.

    13.

    14.

    15.

    The tag handler for sl:shoppingList is ShoppingListTag and the tag handler for sl:item is ItemSimpleTag.

    ShoppingListTag extends BodyTagSupport and ItemSimpleTag extends SimpleTagSupport.

    Which is true?

    A. ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling getParent() and casting the result to ShoppingListTag.
    B. ShoppingListTag can find the child instances of ItemSimpleTag by calling super.getChildren() and casting each to an ItemSimpleTag.
    C. It is impossible for ItemSimpleTag and ShoppingListTag to find each other in a tag hierarchy because one is a Simple tag and the other is a Classic tag.
    D. ShoppingListTag can find the child instances of ItemSimpleTag by calling getChildren() on the PageContext and casting each to an ItemSimpleTag.
    E. ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling findAncestorWithClass() on the PageContext and casting the result to ShoppingListTag.

  • Question 237:

    Click the Exhibit button. Given the JSP code:

    1.

    <%

    2.

    pageContext.setAttribute( "product",

    3.

    new com.example.Product( "Pizza", 0.99 ) );

    4.

    %>

    5.

    <%-- insert code here --%>

    Which two, inserted at line 5, output the name of the product in the response? (Choose two.)

  • Question 238:

    Which two are valid values for the element inside a element of a web application deployment descriptor? (Choose two.)

    A. NULL
    B. SECURE
    C. INTEGRAL
    D. ENCRYPTED
    E. CONFIDENTIAL

  • Question 239:

    You web application uses a lot of Java enumerated types in the domain model of the application. Built into each enum type is a method, getDisplay(), which returns a localized, user-oriented string. There are many uses for presenting enums within the web application, so your manager has asked you to create a custom tag that iterates over the set of enum values and processes the body of the tag once for each value; setting the value into a page-scoped attribute called, enumValue. Here is an example of how this tag is used:

    10.

    You have decided to use the Simple tag model to create this tag handler.

    Which tag handler method will accomplish this goal?

    A. public void doTag() throw JspException {try {for ( Enum value : getEnumValues() ) {pageContext.setAttribute("enumValue", value);getJspBody().invoke(getOut());}} (Exception e) { throw new JspException(e); }}
    B. public void doTag() throw JspException {try {for ( Enum value : getEnumValues() ) {getJspContext ().setAttribute("enumValue", value);getJspBody().invoke(null);}} (Exception e) { throw new JspException(e); }}
    C. public void doTag() throw JspException {try {for ( Enum value : getEnumValues() ) {getJspContext ().setAttribute("enumValue", value);getJspBody().invoke(getJspContext().getWriter());}} (Exception e) { throw new JspException (e); }}
    D. public void doTag() throw JspException {try {for ( Enum value : getEnumValues() ) {pageContext.setAttribute("enumValue", value);getJspBody().invoke(getJspContext().getWriter());}} (Exception e) { throw new JspException(e); }}

  • Question 240:

    A developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, the application needs to find, in a transparent manner, the heterogeneous business components used to service the client's requests. Which design patterns, working together, address these issues?

    A. Business Delegate and Transfer Object
    B. Business Delegate and Service Locator
    C. Front Controller and Business Delegate
    D. Intercepting Filter and Transfer Object
    E. Model-View-Controller and Intercepting Filter

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-858 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.