Given:
10. //...
20.
int[] foo = new int[10000];
21.
foo = null;
22.
System.gc();
23.
//...
Which is true once the program execution reaches line 23?
A. The garbage collector suspends the program until more memory becomes available.
B. The garbage collector CANNOT reclaim the memory allocated to foo because the reference is nulled out.
C. The garbage collector is triggered and memory is guaranteed to be reclaimed.
D. The garbage collector is triggered but there are no guarantees that any memory has been reclaimed.
Click the Exhibit button.
NewsMIDlet and CalendarMIDlet are in different MIDlet suites. Neither has any static push registrations.
Suppose NewsMIDlet registers dynamically for datagram push notifications on port 79.
What happens if a method CalendarMIDlet.init() attempts to open a UDPDatagramConnection on port 79?

A. init() succeeds without user confirmation, and removes NewsMIDlet's registration for datagram push connections.
B. init() fails to open the connection.
C. init() succeeds only with user confirmation.
D. init() succeeds without user confirmation, and leaves untouched NewsMIDlet's registration for datagram push connections.
Click the Exhibit button.
What is visible on the display when this MIDlet is executed?

examollectionvce.com Leaders in IT Certification 43

A. A white screen is shown momentarily, and then a black screen is shown.
B. A java.lang.RuntimeException is thrown.
C. The screen continuously switches back and forth between black and white.
D. A black screen is shown momentarily, and then a white screen is shown.
Which two are true about MIDlet suite provisioning? (Choose two.)
A. A JTWI-compliant device must support HTTP 1.1.
B. A JTWI-compliant device must support HTTP 1.0.
C. A JTWI-compliant device must support HTTP 1.1 and cookies.
D. A JTWI-compliant device must support HTTP authentication.
Which is true about the installation status report definition?
A. If the installation status report CANNOT be sent, the device must refuse the installation of the MIDlet suite.
B. In response to an installation status report, the server must reply with a 200 OK. HTTP acknowledgement response.
C. A MIDlet suite CANNOT be removed until the installation notification has been successfully sent and the acknowledgement has been received.
D. The only protocols supported for the status report notification are HTTP and UDP.
Given:
RecordStore rs = null;
static final String REC_STORE = "appdata"; And, the record store does NOT already exist.
Which is the correct way to open the record store, requesting the record store be created?
A. rs = RecordStore.openRecordStore(REC_STORE, true);
B. rs = RecordStore.createRecordStore(REC_STORE);
C. rs = RecordStore.openRecordStore(REC_STORE);
D. rs = RecordStore.openRecordStore(REC_STORE, 1);
E. rs = RecordStore.createRecordStore(REC_STORE, true);
F. rs = RecordStore.createRecordStore(REC_STORE, 1);
Given: a JAR containing a MIDlet named TesterMIDlet a JAD with this content: CertificationExam: Sun Certified Mobile Application DeveloperMIDlet-1: TesterMIDlet, , certification.TesterMIDlet MIDlet-Jar-Size: 2038 MIDlet-Jar-URL: Certification.jar
MIDlet-Name: Certification
MIDlet-Vendor: A Testing Company MIDlet-Version: 1.0 MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-2.0 This MIDlet needs to get the property with the key CertificationExam defined in the JAD. This needs to be assigned to a String ExamName from within the MIDlet.startApp() method. What is the correct way to accomplish this?
A. String ExamName = System.getProperty("CertificationExam");
B. String ExamName = System.getProperty("MIDlet-CertificationExam");
C. String ExamName = this.getAppProperty("CertificationExam");
D. String ExamName = this.getAppProperty("MIDlet-CertificationExam");
wav is a content type supported on a device that executes:
10.
Player p;
11.
p = Manager.createPlayer("http://foobar.sun.com/sound.wav");
12.
p.prefetch(); Which is true?
A. An exception is generated at runtime.
B. No exception is thrown at runtime. No sound is played.
C. The result is device-dependent.
D. sound.wav is played on the device.
Which three are defined as user interaction permission modes? (Choose three.)
A. global
B. session
C. oneshot
D. application
E. blanket
There are different variants of opening a socket connection with the Generic Connection Framework. Which three are valid? (Choose three.)
A. Connection conn = Connector.open("socket::java.sun.com");
B. Connection conn = Connector.open("socket://java.sun.com");
C. Connection conn = Connector.open("socket://");
D. Connection conn = Connector.open("socket:80://java.sun.com");
E. Connection conn = Connector.open("socket");
F. Connection conn = Connector.open("socket://java.sun.com:80");