Oracle Java Mobile Edition 1 Mobile Application Developer Certified Professional - 1Z0-869 Exam Practice Test

Which method in javax.microedition.midlet.MIDlet is used to retrieve the attributes necessary to access a record store in a different MIDlet suite?
Correct Answer: B
Given:
HttpConnection conn
(HttpConnection) Connector.open("http://internalsite:8080/");
and
MIDlet-Permission-Opt is set to javax.microedition.io.Connector.http in the JAD file.
What is the result?
Correct Answer: A
Given:
A record store has three records: Record 1 contains Apple, Record 2 contains Mango, Record 3 contains Cherry, and the RecordComparator class:
1 . public class CompareTest implements RecordComparator {
2 . public int compare(byte[] rec1, byte[] rec2) {
3 . String str1 = new String(rec1), str2 = new String(rec2);
4 . int result = str2.compareTo(str1);
5 . if (result == 0)
6 . return RecordComparator.EQUIVALENT;
7 . else if (result < 0)
8 . return RecordComparator.PRECEDES;
9 . else
1 0. return RecordComparator.FOLLOWS;
1 1. }
1 2. }
What is the return order of the records for an enumerator using CompareTest?
Correct Answer: B
DRAG DROP
Click the Task button.
Place the correct class within the hierarchy to reflect the class inheritance structure for the MIDP 2.0 user interface API. Not all classes are shown.
Correct Answer:
Which is true about CLDC support for accessing system property information?
Correct Answer: B
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?
Correct Answer: C
Given the MIDlet code:
3 . public void go() {
4 . try {
5 . doStuff();
6 . } catch(java.lang.IllegalAccessError e) {
7 . aForm.append("An Error");
8 . }
9 . }
Assuming the aForm variable on line 7 is a correctly initialized Form and set to the current display, what is the result?
Correct Answer: C
Assuming an application descriptor contains: MIDlet-Data-Size: 4096 Which is true?
Correct Answer: C
DRAG DROP
Click the Task button. Place each player state next to its description.
Correct Answer:
A MIDlet has entered the paused state. Which is a valid action to attempt to make it active?
Correct Answer: D
Click the Exhibit button.
Given a MIDlet suite with the JAD and the manifest files, what is the behavior of a JTWI- compliant device that tries to download the MIDlet suite?
Correct Answer: D
A JTWI application sends a text message using the code:
message.setPayloadText("hello world!");
conn.send(message);
What exception will this code throw if a timeout occurs while trying to send the message?
Correct Answer: B
Which two are true regarding record stores? (Choose two.)
Correct Answer: C,D
What is TimeBase?
Correct Answer: D
Which two properties of a Player can be set programmatically after its creation? (Choose two.)
Correct Answer: D,E