Slide 1: 310-019
Sun Certified Associate for the Java Platform, Standard Edition Exam: 310-019
Demo Edition
CERT MAGIC
1 http://www.certmagic.com
Slide 2: 310-019
QUESTION: 1 Which three about JMS are true? (Choose three.) A. JMS is the acronym for Java Mail Service. B. JMS supports an event-oriented approach to message reception. C. JMS supports both synchronous and asynchronous message passing. D. JMS does NOT depend on MOM (Messaging-Oriented Middleware) products. E. JMS provides a common way for Java programs to access an enterprise messaging system's messages.
Answer: B, C, E QUESTION: 2 Which statement is true? A. The JMS API is located in the java.jms package. B. JMS provides interfaces to naming and directory services. C. JMS enables an application to provide flexible, asynchronous data exchange. D. JMS enables an application to provide tightly coupled, distributed communication.
Answer: C QUESTION: 3 A Java programmer wants to develop a small application to run on mobile phones. Which Java edition (or editions) are required to develop the application? A. B. C. D. E. F. only J2SE only J2EE only J2ME J2SE and J2EE J2SE and J2ME J2EE and J2ME
Answer: E QUESTION: 4 Which is true? A. All JDBC drivers are pure Java. B. The JDBC API is included in J2SE.
2
http://www.certmagic.com
Slide 3: 310-019
C. The JDBC API is an extension of the ODBC API. D. JDBC is used to connect to MOM (Message-Oriented Middleware) products.
Answer: B QUESTION: 5 Which two are true? (Choose two.) A. B. C. D. E. J2EE includes the MIDP API. J2EE application developers need J2SE. J2EE includes servlet APIs and EJB APIs. J2EE applications depend on web servers. J2EE runs on consumer and embedded devices.
Answer: B, C QUESTION: 6 Which is true? A. A J2SE program can create no more than 10 concurrent threads. B. The Java threading model provides equal processor time to all threads. C. All threads created by a given Java program share the same invocation stack. D. Threading allows GUI applications to perform lengthy calculations and respond to user events at the same time.
Answer: D QUESTION: 7 Which two are characteristics of an RDBMS? (Choose two.) A. J2EE provides a cross-platform RDBMS. B. An RDBMS represents data using two-dimensional tables. C. An RDBMS represents data using three-dimensional tables. D. Business-tier applications use session beans to represent rows in an RDBMS. E. Java technologies provide capabilities for connecting a legacy RDBMS to a web application.
Answer: B, E QUESTION: 8 Which is true about RMI?
3
http://www.certmagic.com
Slide 4: 310-019
A. B. C. D. E.
RMI is used to create thin web clients. RMI allows objects to be sent from one computer to another. RMI is the Java API used for executing queries on a database. RMI is used to develop applications for wireless mobile devices. RMI is the transport protocol used by web servers and browsers.
Answer: B QUESTION: 9 What is the purpose of JNDI? A. B. C. D. to parse XML documents to access native code from a Java application to register Java Web Start applications with a web server to access various directory services using a single interface
Answer: D QUESTION: 10 Which statement about threading in Java is false? A. A thread is a special type of method. B. The synchronized keyword is used to lock objects. C. A thread whose execution has completed is no longer runnable. D. Threads waiting to be executed are generally chosen for execution based on priority.
Answer: A QUESTION: 11 What is the definition of the acronym SQL? A. B. C. D. E. F. Special Query Language System Query Language Special Queue Language System Queue Language Structured Query Language Structured Queue Language
4
http://www.certmagic.com
Slide 5: 310-019
Answer: E QUESTION: 12 A Java programmer wants to develop a browser-based multitier application for a large bank. Which Java edition (or editions) should be used to develop this system?
A. B. C. D. E. F.
only J2SE only J2EE only J2ME J2SE and J2EE J2SE and J2ME J2EE and J2ME
Answer: D QUESTION: 13 Which two are true? (Choose two.) A. B. C. D. E. SQL commands cannot be contained in servlets. SQL is a web services technology used to parse large XML files. SQL technology is used to access JMS queues from within EJB technology. SQL commands can be written in applications that use NO Java technologies. SQL allows you to modify multiple rows in a table with a single command.
Answer: D, E QUESTION: 14 Click the Exhibit button. Which class correctly implements the interface Flyer?
5
http://www.certmagic.com
Slide 6: 310-019
A. B. C. D.
Lark Airplane Penguin Helicopter
Answer: B QUESTION: 15 Click the Exhibit button. Which two are true? (Choose two.)
A. The diagram shows a composition relation. B. The diagram does NOT show a composition relation. C. A Foo instance has access to the Bar with which it is associated. D. A Bar instance has access to the Foo with which it is associated. E. It cannot be determined from the diagram whether instances of Foo and Bar will have access to each other.
6
http://www.certmagic.com
Slide 7: 310-019
Answer: B, D QUESTION: 16 Which two are valid representations of operations in UML? (Choose two.) A. B. C. D. E. - op(p : P) : P + int op(int param) * op(param : int) : int + op(param : int) : int public void op(int param)
Answer: A, D QUESTION: 17 Click the Exhibit button. Which is an abstract class?
A. B. C. D.
Cat Dog Rabbit Mouse
Answer: D QUESTION: 18 Click the Exhibit button. Which two are true? (Choose two.)
7
http://www.certmagic.com
Slide 8: 310-019
A. B. C. D. E. F.
It is valid for a Zippy to have no associated Dippy. It is valid for a Dippy to have no associated Zippy. Every Zippy must be associated with exactly one Dippy. Every Dippy must be associated with exactly one Zippy. Every Dippy must be associated with at least one Zippy. It is valid for a Zippy to be associated with more than one Dippy.
Answer: A, E QUESTION: 19 Click the Exhibit button. Which is the class name?
A. B. C. D. E.
eat age Dog bark name
Answer: C QUESTION: 20 Click the Exhibit button. Which two are true? (Choose two.)
8
http://www.certmagic.com
Slide 9: 310-019
A. Every Flurb contains a reference to itself. B. Every Flurb is associated with exactly one Flurb. C. There can only be one instance of the Flurb class. D. There must always be an even number of Flurb instances. E. A Flurb can be associated with itself, but it also could be associated with a different Flurb.
Answer: B, E
9
http://www.certmagic.com