1Z0-860 Web TestEngine demo

Exit VCEDump 1Z0-860 Java Enterprise Edition 5 Business Component Developer Certified Professional
Question 12 of 46
0% complete
Q12 Single choice

A developer writes a stateless session bean FooBean with one remote business interface FooRemote containing one business method foo. Method foo takes a single parameter of application-defined type MyData.
11. public class MyData implements Java. io.Serializablej
12. int a; 13.}
Method foo is implemented within the FooBean class as:
11. public void foo(MyData data) {
12. data.a = 2; 13.}
Another session bean within the same application has a reference to FooRemote in variable fooRef and

calls method foo with the following code:
11. MyData data = new MyDatafJ;
12. data.a = 1;
13. fooRef.foo(data);
14. System, out. println(data. a);

What is the value of data, a when control reaches Line 14 of the client ?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in