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
Rating
100%

Question 1

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?

Question 2

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.)

Question 3

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.)

Question 4

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.)

Question 5

Given:
1.<% int[] nums = {42,420,4200};
2.request.setAttribute("foo", nums); %>
3.${5 + 3 lt 6}
4.${requestScope['foo'][0] ne 10 div 0}
5.${10 div 0}
What is the result?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.