310-083 SCWCD SUN Sun Certified Web Component Developer For J2EE 5
310-083 SCWCD SUN Sun Certified Web Component Developer For J2EE 5
310-083 SCWCD SUN Sun Certified Web Component Developer For J2EE 5
310-083 SCWCD
SUN Sun Certified Web Component Developer for J2EE 5
The Questions & Answers cover the latest real test and with all the correct answer.we promise the Q&A for SUN
SCWCD 310-083 examination of original title complete coverage.Just4Exam 310-083 Braindumps Questions &
Answers help you pass the exam. Otherwise,we will give you a full refund.
3. 100% Guarantee to Pass Your SCWCD exam and get your SCWCD Certification.
All will purchase "310-083 Q&A" customers will obtain refund money after-sale commitments if do not pass the exam,
And enjoy the upgrade Q&A service for free in one year. Ensure customers a pass rate.Just4Exam helps you one
time pass the SCWCD 310-083 tests.
We promised that use Just4Exam Q&A ensure you pass the exam at your first try.
1. The Q&A are from cooperation exam center of the real original title,summaried by our professional team and
collated by senior IT lectured in co-training center to mak e sure the professional quality of the Q&A.The correctly of
the Q&A is 100%, the coverage of 310-083 Q&A are more than 96%.All you need to study the whole 310-083 Q&A
before you participate the certification exam,it should be possible to easily complete the exam and pass the
certification.
2. Just4Exam to all the Q&A, we promised "do not pass the exam give you a full refund". If you buy our 310-083 Q&A
and did not pass the exam at the first try. You can take the examination report card that stamped with PROMETRIC
or VUE test centers Seal. we will refund your full cost of 310-083 Q&A, absolutely guarantee you interests have no
losses.(For a full refund details)
3. Just4Exam professional IT Q&A vendors, we provide well after-sale service. To all the customers buy the Q&A, we
provide track service. when you buy the Q&A with in one year. you can enjoy the upgrade Q&A service for free. If in
this period, the certified test center change the 310-083 Q&A, we will update the Q&A in the first time, and provide
you the download update for free.
SUN 310-083 Test belongs to one of the SCWCD certified test, if needs to obtain the SCWCD certificate, you also
need to participate in other related test, the details you may visit the SCWCD certified topic, in there, you will see all
related SCWCD certified subject of examination.
310-083
Just4Exam professional provide SCWCD 310-083 the newest Q&A, completely covers 310-083 test original topic.
With our complete SCWCD resources, you will minimize your SCWCD cost and be ready to pass your 310-083 tests
on Your First Try, 100% Money Back Guarantee included!
Try free 310-083 exam demo before you decide to buy it in Just4Exam.com
Just4Exam.com offers incredib le career enhancing opportunities. We are a team of IT professionals that focus on providing
our customers with the most up to date material for any IT certification exam. This material is so effective that we Guarantee
you will pass the exam or your money b ack.
4. Which two statements about tag files are true? (Choose two.)
A. Classic tag handlers and tag files CANNOT reside in the same tag library.
B. A file named foo.tag, located in /WEB-INF/tags/bar, is recognized as a tag file by the container.
C. A file named foo.tag, bundled in a JAR file but NOT defined in a TLD, triggers a container translation error.
D. A file named foo.tag, located in a web application's root directory, is recognized as a tag file by the container.
E. If files foo1.tag and foo2.tag both reside in /WEB-INF/tags/bar, the container will consider them part of the same
tag library.
Answer: BE
5. You are building a web application that will be used throughout the European Union; therefore, it has significant
internationalization requirements. You have been tasked to create a custom tag that generates a message using the
java.text.MessageFormat class. The tag will take the resourceKey attribute and a variable number of argument
attributes with the format, arg<N>. Here is an example use of this tag and its output:
<t:message resourceKey='diskFileMsg' arg0='MyDisk' arg1='1247' />
generates:
The disk "MyDisk" contains 1247 file(s).
Which Simple tag class definition accomplishes this goal of handling a variable number of tag attributes?
A. public class MessageTag extends SimpleTagSupport
implements VariableAttributes {
private Map attributes = new HashMap();
public void setVariableAttribute(String uri,
String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
B. The Simple tag model does NOT support a variable number of attributes.
C. public class MessageTag extends SimpleTagSupport
implements DynamicAttributes {
private Map attributes = new HashMap();
public void putAttribute(String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
D. public class MessageTag extends SimpleTagSupport
implements VariableAttributes {
private Map attributes = new HashMap();
public void putAttribute(String name, Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
E. public class MessageTag extends SimpleTagSupport
implements DynamicAttributes {
private Map attributes = new HashMap();
public void setDynamicAttribute(String uri, String name,
Object value) {
this.attributes.put(name, value);
}
// more tag handler methods
}
Answer: E
6. </sl:shoppingList>
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.
Answer: A
7. A developer wants to make a name attribute available to all servlets associated with a particular user, across
multiple requests from that user, from the same browser instance.
Which two provide this capability from within a tag handler? (Choose two.)
A. pageContext.setAttribute("name", theValue);
B. pageContext.setAttribute("name", getSession());
C. pageContext.getRequest().setAttribute("name", theValue);
D. pageContext.getSession().setAttribute("name", theValue);
E. pageContext.setAttribute("name", theValue,
PageContext.PAGE_SCOPE);
F. pageContext.setAttribute("name", theValue,
PageContext.SESSION_SCOPE);
Answer: DF
8. Which implicit object is used in a JSP page to retrieve values associated with <context-param> entries in the
deployment descriptor?
A. config
B. request
C. session
D. application
Answer: D
11. You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately, after
extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fix these problems
would require significant recoding, but you are already behind schedule. Which JSP code snippet can you use to
resolve these concurrency problems?
A. <%@ page isThreadSafe='false' %>
B. <%@ implements SingleThreadModel %>
C. <%! implements SingleThreadModel %>
D. <%@ page useSingleThreadModel='true' %>
E. <%@ page implements='SingleThreadModel' %>
Answer: A
12. session.getAttribute("myAttribute"));
20. }
21. }
What is the result when a request is sent to MyServlet?
A. An IllegalStateException is thrown at runtime.
B. An InvalidSessionException is thrown at runtime.
C. The string "value=null" appears in the response stream.
D. The string "value=myAttributeValue" appears in the response stream.
Answer: A
13. }
21. }
What is the result when a request is sent to MyServlet?
A. An IllegalStateException is thrown at runtime.
B. An InvalidSessionException is thrown at runtime.
C. The string "value=null" appears in the response stream.
D. The string "value=myAttributeValue" appears in the response stream.
Answer: A
14. To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your
web application is being converted from simple JSP pages to JSP Document format. However, one of your
JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create
screen-specific validation functions and are included in these pages with the following statement:
10. <head>
11. <script src='/scripts/screenFunctions.jsp'
12. language='javascript'
13. type='application/javascript'> </script>
14. </head>
15. <!-- body of the web form -->
Which JSP code snippet declares that this JSP Document is a JavaScript file?
A. <%@ page contentType='application/javascript' %>
B. <jsp:page contentType='application/javascript' />
C. <jsp:document contentType='application/javascript' />
D. <jsp:directive.page contentType='application/javascript' />
E. No declaration is needed because the web form XHTML page already declares the MIME type of
the /scripts/screenFunctions.jsp file in the <script> tag.
Answer: D
16. The sl:shoppingList and sl:item tags output a shopping list to the response and are used as follows:
11. <sl:shoppingList>
12. <sl:item name="Bread" />
13. <sl:item name="Milk" />
14. <sl:item name="Eggs" />
15. </sl:shoppingList>
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.
Answer: A
17. <sl:shoppingList>
12. <sl:item name="Bread" />
13. <sl:item name="Milk" />
14. <sl:item name="Eggs" />
15. </sl:shoppingList>
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.
Answer: A
18. You have built a collection of custom tags for your web application. The TLD file is located in the file: /WEB-
INF/myTags.xml. You refer to these tags in your JSPs using the symbolic name: myTags. Which deployment
descriptor element must you use to make this link between the symbolic name and the TLD file name?
A. <taglib>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</taglib>
B. <tags>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</tags>
C. <tags>
<tags-uri>myTags</taglib-uri>
<tags-location>/WEB-INF/myTags.xml</tags-location>
</tags>
D. <taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/myTags.xml</taglib-location>
</taglib>
Answer: D
19. }
What is the result when a request is sent to MyServlet?
A. An IllegalStateException is thrown at runtime.
B. An InvalidSessionException is thrown at runtime.
C. The string "value=null" appears in the response stream.
D. The string "value=myAttributeValue" appears in the response stream.
Answer: A
310-082 Sun Certified Web Component Developer for J2EE 1.4. Upgrade