Which is true regarding the javax.wireless.messaging package?
A. Message objects are assumed always to be blocks of binary data.
B. This API is designed to run exclusively on the GSM SMS protocol.
C. The messaging protocols that use this API are typically store-and-forward.
D. Messages are usually lost if the recipient is not connected at the time of sending.
obscure is a content type unsupported on a device that executes:
10.
String locator = "http://foobar.sun.com/content.obscure";
11.
Player player = Manager.createPlayer(locator); Which is true?
A. The file is interpreted as an HTML file.
B. An exception is thrown at runtime.
C. The file is interpreted as an ASCII file.
D. player is set to null.
What is the result if a call to serviceRepaints() triggers a separate thread to invoke paint()?
A. A deadlock always occurs.
B. The system may deadlock if the caller to serviceRepaints() holds a lock that is also needed by paint().
C. An exception is thrown at runtime.
D. MIDP is thread-safe. There will never be a deadlock.
Click the Exhibit button.
Which two are true? (Choose two.)
A. In class A, no new events will be delivered to the application until after the commandAction() method completes.
B. In class B, no new events will be delivered to the application until after the commandAction() method completes.
C. The commandAction() method code in class B is compliant with the event-handling approach recommended in the MIDP 2.0 specification.
D. The event-handling in class A will NOT print done with action until after the run() method has completed.
E. The commandAction() method code in class A is NOT guaranteed to be portable across all MIDP 2.0-compliant devices.
F. The event-handling mechanism in class A allows multiple command events to be delivered to the application in parallel.
Given: MIDlet Suite A public class Person public class Address MIDlet Suite B public class Person Which is true?
A. Person in MIDlet Suite B is allowed access to Address class in MIDlet Suite A based on the protection domain.
B. Person in MIDlet Suite B is allowed restricted access to the Address class in MIDlet Suite A.
C. Person in MIDlet Suite B is NOT allowed access to the Address class defined in MIDlet Suite A.
D. Person in MIDlet Suite B is allowed access to the Address class defined in MIDlet Suite
E.
Assuming an application descriptor contains: MIDlet-Data-Size: 4096 Which is true?
A. The device will use 4096 bytes to buffer data the application receives over the network.
B. The device will permanently reserve 4096 bytes of heap space for the application.
C. The device will permanently reserve 4096 bytes of RMS space for the application.
D. The device will use 4096 bytes to buffer data the application sends over the network.
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?
A. An Error is printed to the display if an IllegalAccessError occurs.
B. Compilation fails due to a problem on line 7.
C. The MIDlet fails at runtime due to a problem on line 6.
D. The MIDlet fails at runtime due to a problem on line 7.
E. Compilation fails due to a problem on line 6.
Click the Exhibit button.
The red collision rectangle around each Sprite in the image is NOT part of the actual image. The two Sprite objects intersect in the application precisely as shown.
Which two are true? (Choose two.)
A. The most efficient way to detect collision is to use collision detection based solely on the collision rectangles.
B. For the two Sprite objects to be considered in collision, collidesWith() must be invoked on both objects.
C. If Sprite 1 is being tested for collision with Sprite 2 using pixel-level collision detection, the two Sprite objects will NOT be in collision.
D. For the two Sprite objects to be considered in collision, each Sprite must have no more than one frame.
Which four are absent from the CLDC virtual machine? (Choose four.)
A. class file verification
B. thread groups and daemon threads
C. asynchronous exceptions
D. multi-threading
E. custom class loaders
F. object.finalize() method
G. inner and anonymous classes
Which two methods are available only within classes of the MIDP low-level UI API? (Choose two.)
A. setFullScreenMode()
B. hasRepeatEvents()
C. setPreferredSize()
D. notifyStateChanged()
E. getLayout()