Oracle 1Z0-858 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 1Z0-858
  • Exam Name/Title: Java Enterprise Edition 5 Web Component Developer Certified Professional Exam
  • Certification Provider: Oracle
  • Corresponding Certification: Java Technology
  • Exam Questions: 276
  • Updated On: Aug 10, 2026
Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
Correct Answer: D Vote an answer
A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? (Choose two.)
Correct Answer: A,B Vote an answer
DRAG DROP
Click the Task button.
Place the corresponding resources and directories in the proper web application deployment structure.
Correct Answer:
DRAG DROP
Click the Task button.
Given a servlet mapped to /control, place the correct URI segment returned as a String on the corresponding HttpServletRequest method call for the URI: /myapp/control/processorder.
Correct Answer:
A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner. Which two can support this design goal? (Choose two.)
Correct Answer: A,D Vote an answer
A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page? (Choose two.)
Correct Answer: D,E Vote an answer
You have built a web application that you license to small businesses. The webapp uses a context parameter, called licenseExtension, which enables certain advanced features based on your client's license package. When a client pays for a specific service, you provide them with a license extension key that they insert into the <context-param> of the deployment descriptor. Not every client will have this context parameter so you need to create a context listener to set up a default value in the licenseExtension parameter. Which code snippet will accomplish this goal?
Correct Answer: C Vote an answer
Click the Exhibit button.
The Appliance class is a Singleton that loads a set of properties into a Map from an external data source. Assume:
An instance of the Appliance class exists in the application-scoped attribute, appl The appliance object includes the name property that maps to the value Cobia The request-scoped attribute, prop, has the value name.
Which two EL code snippets will display the string Cobia? (Choose two.)
Correct Answer: A,D Vote an answer
Given:
11.
<% java.util.Map map = new java.util.HashMap();
12.
request.setAttribute("map", map);
13.
map.put("a", "true");
14.
map.put("b", "false");
15.
map.put("c", "42"); %>
Which three EL expressions are valid and evaluate to true? (Choose three.)
Correct Answer: A,D,E Vote an answer
A web application allows the HTML title banner to be set using a servlet context initialization parameter called titleStr. Which two properly set the title in this scenario? (Choose two.)
Correct Answer: E,G Vote an answer
0
0
0
10