Online Access Free 1Z0-858 Practice Test
| Exam Code: | 1Z0-858 |
| Exam Name: | Java Enterprise Edition 5 Web Component Developer Certified Professional Exam |
| Certification Provider: | Oracle |
| Free Question Number: | 276 |
| Posted: | Oct 18, 2026 |
You are building a Front Controller using a JSP page and you need to determine if the user's session has NOT been created yet and perform some special processing for this case. Which scriptlet code snippet will perform this test?
You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session? (Choose two.)
Given that a web application consists of two HttpServlet classes, ServletA and ServletB, and the ServletA.service method:
20.
String key = "com.example.data";
21.
session.setAttribute(key, "Hello");
22.
Object value = session.getAttribute(key);
23.
Assume session is an HttpSession, and is not referenced anywhere else in ServletA.
Which two changes, taken together, ensure that value is equal to "Hello" on line 23? (Choose two.)
Given the JSP code:
10.<html>
11.<body>
12.<jsp:useBean id='customer' class='com.example.Customer' />
13.Hello, ${customer.title} ${customer.lastName}, welcome
14.to Squeaky Beans, Inc.
15.</body>
16.</html>
Which three types of JSP code are used? (Choose three.)