Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on Mock Exam Question??  RSS feed

 
Seenu Reddy
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
 
Saket Barve
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!