C2180-607 Free Dumps Study Materials
Question 7: Refer to the exhibits.
Exhibit 1 shows the definition of Customer business object.
Exhibit 2 contains fragments of Java code that creates an instance of Customer business object.
Which of the following lines of code places a value in the telephone field in the ArrayOfTelephone child
business object?
A. DataObject tele_array = customer.createDataObject("ArrayOfTelephone");A.DataObject tele_array =
customer.createDataObject("ArrayOfTelephone"); tele_array.setString("telephone", "111-1111");
B. DataObject tele_array = bof.create("http://Test", "ArrayOfTelephone");B.DataObject tele_array =
bof.create("http://Test", "ArrayOfTelephone"); tele_array.setString("telephone", "111-1111");
C. DataObject tele_array = customer.createDataObject("ArrayOfTelephone");C.DataObject tele_array =
customer.createDataObject("ArrayOfTelephone"); Sequence seq = tele_array.getSequence();
seq.add("telephone", "111-1111");
D. DataObject tele_array = customer.createDataObject("ArrayOfTelephone");D.DataObject tele_array =
customer.createDataObject("ArrayOfTelephone"); Sequence seq = tele_array.getString("telephone");?
seq.add("telephone", "111-1111");
Correct Answer: C