Given:
rs is an object of type javax.microedition.rms.RecordStore.
baos is an object of type java.io.DataOutputStream.
recId is an int.
Which adds a record to rs?
A. byte [] b = baos.toByteArray(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
B. byte [] b = baos.toByteArray(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
C. byte [] b = baos.write(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
D. byte [] b = baos.writeByteArray(); try { recId = rs.addRecord(b, 0, b.length); } catch (Exception e) { }
E. byte [] b = baos.writeByteArray(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
F. byte [] b = baos.write(); try { recId = rs.add(b, 0, b.length); } catch (Exception e) { }
Which two are true about class file verification as defined by the CLDC specification? (Choose two.)
A. Verification is NOT required.
B. Verification can use a custom implementation.
C. Verification is completed at compile time and no further verification is necessary.
D. Verification can use the same implementation as defined in the JVM specification.
Given:
Layer heroShip = aLayerManager.getLayerAt(0);
Which is true?
A. An ArrayIndexOutOfBoundsException is thrown.
B. The getLayerAt() is not a valid method of the LayerManager class.
C. An IllegalArgumentException is thrown.
D. The heroShip is assigned to the Layer object located at index 0.
Which is true when using multiple threads to access a record store?
A. You must coordinate access to a record store to prevent data corruption.
B. The implementation coordinates access, ensuring that record stores will NOT be corrupted.
C. You CANNOT access a record store with multiple threads.
D. You must lock a record store prior to access.
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.
Given:
12.
canvas.repaint(x1,y1,wd,ht);
13.
canvas.repaint(x2,y2,wd,ht);
14.
canvas.serviceRepaints(); Which two are true? (Choose two.)
A. serviceRepaints() blocks waiting for paint() to return.
B. paint() is called three times, once for each repaint() and once for serviceRepaints().
C. paint() is always called twice, once for each repaint() request.
D. If the two regions specified in repaint() overlap, repaint() may attempt to paint the union of the two areas.
Which is true about PushRegistry.registerAlarm()?
A. PushRegistry.registerAlarm() works independently of the network protocols available for push connections.
B. JTWI devices may choose NOT to implement PushRegistry.registerAlarm().
C. PushRegistry.registerAlarm() is overloaded to play audio file arguments.
D. PushRegistry.registerAlarm() supports several outstanding activation times per MIDlet.
Which arguments should be passed to Connector.open() and TextMessage.setAddress(), respectively, to initiate an SMS text message using a server connection?
A. sms://+18005551234, with no need to call setAddress()
B. sms://:1234 and sms://+18005551234
C. sms://:1234, with no need to call setAddress()
D. sms://+18005551234 and sms://:1234
Given
10. // ...
20.
VolumeControl vc;
21.
vc = (VolumeControl) player.getControl("VolumeControl");
22.
vc.setLevel(4);
23.
// ...
Which is true about the volume of audio playback from player when the code is executed?
A. The volume of the audio is exactly 40 dB.
B. The volume of the audio must be the same on all MIDP devices.
C. The volume of the audio is up to the MIDP device.
D. The volume of the audio is approximately 0.4 dB.
What is the result if a call to serviceRepaints() triggers a separate thread to invoke paint()?
A. An exception is thrown at runtime.
B. The system may deadlock if the caller to serviceRepaints() holds a lock that is also needed by paint().
C. A deadlock always occurs.
D. MIDP is thread-safe. There will never be a deadlock.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-869 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.