Online Access Free 1Z0-869 Exam Questions
Exam Code: | 1Z0-869 |
Exam Name: | Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam |
Certification Provider: | Oracle |
Free Question Number: | 340 |
Posted: | Sep 06, 2025 |
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?
Given:
1 0. //...
2 0. try {
2 1. Hashtable table = new Hashtable();
2 2. for (;;) table.put(new Object(), new Object());
2 3. } catch (OutOfMemoryException e) {
2 4. Display.getDisplay().setCurrent(new Alert("Out of Memory!"));
2 5. }
2 6. //...
Which is true?
An open record store, rs, contains five records with record IDs 1, 2, 3, 4, and 5.
1 . byte[] data = new byte[10];
2 .
3 . for (int i = 1; i <= rs.getNumRecords(); i++)
4 . {
5 . if (rs.getRecordSize(i) > data.length)
6 . data = new byte[rs.getRecordSize(i)];
7 . rs.getRecord(i, data, 0);
8 . System.out.println(new String(data));
9 . }
If record ID 3 is deleted, and the code is run, what is the result?