GrabCert
HomeExamsProvidersAbout
Sign InSign Up
Home/Exams/Oracle Java Enterprise Development/Question #9
#9Multiple Choice

A developer writes a stateful session bean FooBean with one remote business interface Foo. Foo defines an integer / setter method pair implemented as:
10. private int value;
11. public void setValue (int i) {value = i; }
12. public int getValue () {return value; }
A session bean ClientBean has a business method doSomething and an ejb-ref with ejb-ref-name "fooRef" that is mapped to FooBean’s Foo interface.
11. @Resource private SessionContext SessionCtx;
12. public void doSomething () {
13. Foo foo1 = (Foo) sessionCtx.lookup("fooRef");
14. Foo foo2 = (Foo) sessionCtx.lookup("fooRef");
15. foo1.setvalue(1);
Which statement is true after the code at line 15 completes?

Previous
Question 9 of 80
Exam 1Z0-895 Topic 1 Question 9
Back to all questions
Next
GrabCert

Your trusted source for certification exam preparation. Pass your exams with confidence.

Quick Links

  • Home
  • Exams
  • Providers

Legal

  • About
  • Contact Us
  • Refund Policy
  • Privacy Policy
  • Terms of Service

© 2026 GrabCert. All rights reserved.

Sign InSign Up