QUESTION 1 Adam works as a Database Administrator for Pass4sure.com. He creates a table named Students. He wants to create a new table named Class with the help of the Students table. Which of the following syntaxes will Adam use to accomplish the task? A. CREATE TABLE Class INSERT INTO SELECT * FROM Students; B. […]
QUESTION 1 You are asked to architect an SOA solution that leverages Java web services. The architecture needs to be flexible and allow for the SOAP 1.1, SOAP 1.2, and REST implementations. Which Java EE technology should you use? A. JAXP B. JAXB C. JAX-WS D. JAX-RPC Answer: C
QUESTION 1 How would a MIDlet that uses a GameCanvas efficiently update only a small region of the screen, from the data in the off-screen buffer? A. call flushGraphics(int, int, int, int) that specifies the region to be flushed B. call serviceRepaints() and set a clip region on the Graphics object in paint() C. Pixels […]
QUESTION 1 What are the three primary roles in a web service interaction? (Choose three.) A. Broker B. Facade C. Provider D. Decorator E. Requestor F. Interceptor Answer: ACE
QUESTION 1 Which two statements are true about JAXR support for XML registries? (Choose two.) A. The CapabilityProfile tells a client the capability level of a registry. B. UDDI registries must support ebXML to be compatible with JAXR. C. The UnsupportedCapabilityException is processed for errors from non-Java providers. D. The JAXR API declares methods as […]
QUESTION 1 Which two statements are true about XML schemas and WSDL 1.1? (Choose two.) A. http://schemas.xmlsoap.org/wsdl/ is the WSDL namespace for SOAP binding. B. xsi is used as a prefix to represent the schema namespace as defined by XSD C. XSD schemas are used as a formal definition of WSDL grammar. D. xsd is […]
QUESTION 1 A developer wants to create a business interface for both local and remote usage. For performance reasons the remote interface should NOT be called by a client in the same JVM. Which statement is required to accomplish this, assuming there is no deployment descriptor? A. The business methods are defined in one interface […]
QUESTION 1 Given the following stateful session bean: 10. @Stateful 11. @TransactionAttributefJransactionAttributeType. SUPPORTS) 12. public class VideoBean implements Video { 13. // insert code here 14. public void methodAO {} 15.} Assuming no other transaction-related metadata, which code can be added at Line 13 to guarantee that business method methodA will execute only if invoked […]
QUESTION 1 Given the relationship: The tag handler MyTag extends SimpleTagSupport. At runtime, the doTag method throws a SkipPageException.Which three events occur after the SkipPageException is thrown? (Choose three.) A. Evaluation of page2.jsp stops. B. Evaluation of page1.jsp stops. C. The MyTag instance is NOT reused. D. Evaluation of page2.jsp continues. E. Evaluation of page1.jsp […]
QUESTION 1 Given: 20. public class CreditCard { 21. 22. private String cardID; 23. private Integer limit; 24. public String ownerName; 25. 26. public void setCardInformation(String cardID, 27. String ownerName, 28. Integer limit) { 29. this.cardID = cardID; 30. this.ownerName = ownerName; 31. this.limit = limit; 32. } 33. } Which statement is true? A. […]
QUESTION 1 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 […]
QUESTION 1 Given: 10. class One { 11. void foo() { } 12. } 13. class Two extends One { 14. //insert method here 15. } Which three methods, inserted individually at line 14, will correctly complete class Two? (Choose three.) A. public void foo() { /* more code here */ } B. private void […]
QUESTION 1 Given: 1. public class Base { 2. public static final String FOO = “foo”; 3. public static void main(String[] args) { 4. Base b = new Base(); 5. Sub s = new Sub(); 6. System.out.print(Base.FOO); 7. System.out.print(Sub.FOO); 8. System.out.print(b.FOO); 9. System.out.print(s.FOO); 10. System.out.print(((Base)s).FOO); 11. } } 12. class Sub extends Base {public static […]
QUESTION 1 Given a pre-generics implementation of a method: public static int sum(List list) { int sum = 0; for ( Iterator iter = list.iterator(); iter.hasNext(); ) { int i = ((Integer)iter.next()).intValue(); sum += i; } return sum; } What three changes allow the class to be used with generics and avoid an unchecked warning? […]
QUESTION 1 Which two are true? (Choose two.) A. J2EE runs on consumer and embedded devices. B. J2EE includes the MIDP API. C. J2EE includes servlet APIs and EJB APIs. D. J2EE application developers need J2SE. E. J2EE applications depend on web servers. Answer: CD