Oracle Java Mobile Edition 1 Mobile Application Developer Certified Professional - 1Z0-869 模擬練習

Which two are true about class file verification as defined by the CLDC specification?
(Choose two.)

正解: C,D
The developer is designing a game that uses the LayerManager and Sprite classes. Three Sprite objects are added to a LayerManager object and a call is placed to the LayerManager.paint(Graphics, x, y) method. In what order are the Sprite objects rendered to the device display?

正解: A
Which arguments should be passed to Connector.open() and TextMessage.setAddress(), respectively, to initiate an SMS text message using a server connection?

正解: C
Assume a particular JTWI phone supports server socket connections. A MIDlet running on the phone attempts to register a connection using:
PushRegistry.registerConnection(connection, midlet, filter); Assume connection, midlet, and filter are NOT null. The statement is executed and throws a ConnectionNotFoundException. What causes the exception?

正解: B
Given:
1 . import javax.microedition.midlet.*;
2 . public class Foo extends MIDlet {
3 . public void go() {
4 . ThreadGroup x = Thread.currentThread().getThreadGroup();
5 . int numThreads = x.activeCount();
6 . Thread[] threads = null;
7 . x.enumerate(threads);
8 . }
9 . public void destroyApp(boolean b) { }
1 0. public void pauseApp() { }
1 1. public void startApp() { }
1 2. }
What is the result?

正解: E
A MIDlet that is to be installed on a phone has different values for the MIDlet-Name property between the JAD file and the manifest in the JAR file. Which is true?

正解: D
Which two are true about the javax.wireless.messaging.MessageConnection interface?
(Choose two.)

正解: B,C
Given:
2 1. MessageConnection mc;
2 2. mc = (MessageConnection) Connector.open("sms://:6222");
2 3. mc.setMessageListener(this);
2 4. reader = new MsgReader();
2 5. new Thread(reader).start();
2 6. //...
3 5. public void notifyIncomingMessage(MessageConnection mc2) {
3 6. //...
4 0. }
4 1. //...
5 0. class MsgReader implements Runnable {
5 1. //...
5 5. }
Which two are true? (Choose two.)

正解: A,D
Given:
MIDlet-Push-1: datagram://:444, com.fooworks.PushExample, *
MIDlet-Push-2: datagram://:555, com.fooworks.PushExample, *
are statically registered push connections and given:
1 1. protected void startApp() {
1 2. String[] connections = PushRegistry.listConnections(true);
1 3. if(connections.length == 0) {
1 4. connections = PushRegistry.listConnections(false);
1 5. for (int i=0; i < connections.length; i++) {
1 6. new DatagramHandler(connections[i]).start();
1 7. }
1 8. } else {
1 9. for (int i=0; i < connections.length; i++) {
2 0. new DatagramHandler(connections[i]).start();
2 1. }
2 2. }
2 3. }
Which two identify what will go wrong if the code is invoked by the Application Management Software in response to an inbound connection notification? (Choose two.)

正解: A,C
Which classes and interfaces are available in CLDC?

正解: D
Which two are provided through a WMA 1.1 Message interface? (Choose two.)

正解: A,C
Click the Exhibit button.
Which two are true assuming this method is in a MIDlet? (Choose two.)

正解: D,F
Given the push connection string:
MIDlet-Push-1: socket://:79, com.sun.example.SampleChat, 192.3?.?.*
Which two addresses are allowed to push connection notifications to the application?
(Choose two.)

正解: C,F