Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Doubt on Mock Exam Question??  RSS feed

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This question is from ejbcertificate.com site.

Which of the following statements regarding a local component interface of a session bean are true? [Check all correct answers]

1. Allows a client to remove the session object.
2. Allows a client to get the local home object.
3. Allows a client to get a handle for the session object.
4. Allows a client to get the primary key of the local session bean.
5. Extends javax.ejb.EJBLocalObject either directly or indirectly.

My answer is 1 and 2, but the site tells 1,2 and 5.
Could you please explain how the 5 one is correct.

Thanks,
Seenu
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seenu R,

A Local component interface must extend the EJBLocalObject interface. It can be done directly by the local component interface itself. Alternatively, the local component interface may extend another interface which in turn extends EJBLocalObject.

Does that make sense?

Regards,
Saket
 
Seenu Reddy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saket Barve,
Thanks Saket. i was confused on indirect way of extending, now its clear.

Thanks.
Seenu
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!