Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

SUN Sun Certified Web Component Developer for J2EE 5 (310-083) Free Practice Test

Question 1
A developer is designing a web application that must verify for each request:
The originating request is from a trusted network.
The client has a valid session.
The client has been authenticated.
Which design pattern provides a solution in this situation?

Correct Answer: B
Question 2
Given:
1 1. <servlet>
1 2. <servlet-name>catalog</servlet-name>
1 3. <jsp-file>/catalogTemplate.jsp</jsp-file>
1 4. <load-on-startup>10</load-on-startup>
1 5. </servlet>
Which two are true? (Choose two.)

Correct Answer: A,D
Question 3
Which statement is true about web container session management?

Correct Answer: C
Question 4
Given:
6. <myTag:foo bar='42'>
7. <%="processing" %>
8. </myTag:foo>
and a custom tag handler for foo which extends TagSupport.
Which two are true about the tag handler referenced by foo? (Choose two.)

Correct Answer: C,E
Question 5
Given a JSP page:
1 1. <n:recurse>
1 2. <n:recurse>
1 3. <n:recurse>
1 4. <n:recurse />
1 5. </n:recurse>
1 6. </n:recurse>
1 7. </n:recurse>
The tag handler for n:recurse extends SimpleTagSupport.
Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?

Correct Answer: D
Question 6
Which two actions protect a resource file from direct HTTP access within a web application? (Choose two.)

Correct Answer: B,C
Question 7
Your web site has many user-customizable features, for example font and color preferences on web pages. Your IT department has already built a subsystem for user preferences using Java SE's lang.util.prefs package APIs and you have been ordered to reuse this subsystem in your web application. You need to create an event listener that stores the user's Preference object when an HTTP session is created. Also, note that user identification information is stored in an HTTP cookie.
Which partial listener class can accomplish this goal?

Correct Answer: B
Question 8
Click the Exhibit button.
Assuming the tag library in the exhibit is imported with the prefix forum, which custom tag invocation produces a translation error in a JSP page?

Correct Answer: B