Q17
Multiple choice
Given the MIDlet code:
11. DatagramConnection dgc = (DatagramConnection)Connector.open("datagram://:444");
12. Datagram datagram = dgc.newDatagram(20);
13. dgc.receive(datagram);
14. byte[] data = datagram.getData();
15. String s = new String(data);
16. list.append(s, null);
17. System.out.println("Datagram received: " + s);
Which two are true regarding the portability of the code between devices? (Choose two.)
Select all that apply.