최신Oracle Java Mobile Edition 1 Mobile Application Developer Certified Professional - 1Z0-869무료샘플문제
문제1
A MIDP 2.0 compliant device creates an HTTP connection to a server that supports HTTP
1.1. Which is true?
A MIDP 2.0 compliant device creates an HTTP connection to a server that supports HTTP
1.1. Which is true?
정답: B
문제2
A Player plays a sound after start() is called. Which is the most efficient way to pause the playback so that it may be started as soon as possible when required?
A Player plays a sound after start() is called. Which is the most efficient way to pause the playback so that it may be started as soon as possible when required?
정답: D
문제3
Given:
1 0. public class ExampleMIDlet extends MIDlet {
1 1. //...
2 0. public boolean hasCompleted() {
2 1. //...
3 0. }
3 1. public boolean isLowOnMemory() {
3 2. //...
4 0. }
4 1. public void destroyApp(boolean arg) {
4 2. if (X) throw new MIDletStateChangeException();
4 3. }
4 4. //...
5 0. }
Which substitution for X conforms to the MIDP specification?
Given:
1 0. public class ExampleMIDlet extends MIDlet {
1 1. //...
2 0. public boolean hasCompleted() {
2 1. //...
3 0. }
3 1. public boolean isLowOnMemory() {
3 2. //...
4 0. }
4 1. public void destroyApp(boolean arg) {
4 2. if (X) throw new MIDletStateChangeException();
4 3. }
4 4. //...
5 0. }
Which substitution for X conforms to the MIDP specification?
정답: D
문제4
Which method is initially called when the MIDlet starts in response to a push notification?
Which method is initially called when the MIDlet starts in response to a push notification?
정답: B
문제5
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.)
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
문제6
Which are valid states for an HttpConnection?
Which are valid states for an HttpConnection?
정답: A
문제7
Which two media controls are guaranteed to be available to any MIDP 2.0 device? (Choose two.)
Which two media controls are guaranteed to be available to any MIDP 2.0 device? (Choose two.)
정답: D,E
문제8
Given:
1 . import javax.microedition.midlet.*;
2 . public class Foo extends MIDlet {
3 . public void go() {
4 . try {
5 . doStuff();
6 . } catch(java.lang.NoClassDefFoundError e) { }
7 . }
8 . void doStuff() { }
9 . public void destroyApp(boolean b) { }
1 0. public void pauseApp() { }
1 1. public void startApp() {go();}
1 2. }
Assuming the application is targeted for CLDC 1.1, what is the result?
Given:
1 . import javax.microedition.midlet.*;
2 . public class Foo extends MIDlet {
3 . public void go() {
4 . try {
5 . doStuff();
6 . } catch(java.lang.NoClassDefFoundError e) { }
7 . }
8 . void doStuff() { }
9 . public void destroyApp(boolean b) { }
1 0. public void pauseApp() { }
1 1. public void startApp() {go();}
1 2. }
Assuming the application is targeted for CLDC 1.1, what is the result?
정답: C
문제9
DRAG DROP
Click the Task button.
Place the classes and methods in the correct positions.

DRAG DROP
Click the Task button.
Place the classes and methods in the correct positions.

정답:

문제10
Given:
1 0. Player p = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);
1 1. VolumeControl vc = p.getVolumeControl();
1 2. vc.setLevel(42);
1 3. vc.setMute(true);
1 4. System.out.println(vc.getLevel());
Which is printed to the console?
Given:
1 0. Player p = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);
1 1. VolumeControl vc = p.getVolumeControl();
1 2. vc.setLevel(42);
1 3. vc.setMute(true);
1 4. System.out.println(vc.getLevel());
Which is printed to the console?
정답: B
문제11
Given:
1 5. String addr = "sms://+14155557296";
1 6. MessageConnection conn
1 7. = (MessageConnection) Connector.open(addr);
1 8. // insert code here
1 9. message.setPayloadData(imageBytes);
Assume imageBytes is a valid byte array.
Which statement, inserted at line 18, causes the rest of the code fragment to compile correctly?
Given:
1 5. String addr = "sms://+14155557296";
1 6. MessageConnection conn
1 7. = (MessageConnection) Connector.open(addr);
1 8. // insert code here
1 9. message.setPayloadData(imageBytes);
Assume imageBytes is a valid byte array.
Which statement, inserted at line 18, causes the rest of the code fragment to compile correctly?
정답: D