• Card 16 / 59: If getPrimaryKey() (in EJBObject class) is invoked looking first for a session bean, then second for an entity bean, what would be the result?
    A) Invoking getPrimaryKey() looking for a session bean will cause throwing an exception
    B) Invoking getPrimaryKey() looking for a session bean will return the primary key of the session bean
    C) Invoking getPrimaryKey() looking for an entity bean will cause throwing an exception
    D) Invoking getPrimaryKey() looking for an entity bean will return the primary key of the bean

    Answer:
    A) Invoking getPrimaryKey() looking for a session bean will cause throwing an exception
    D) Invoking getPrimaryKey() looking for an entity bean will return the primary key of the bean

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Questions & Answers

what are components of cells
ofosola Reply
twugzfisfjxxkvdsifgfuy7 it
Sami
58214993
Sami
what is a salt
John
the difference between male and female reproduction
John
what is computed
IBRAHIM Reply
what is biology
IBRAHIM
what is the full meaning of biology
IBRAHIM
what is biology
Jeneba
what is cell
Kuot
425844168
Sami
what is biology
Inenevwo
what is cytoplasm
Emmanuel Reply
structure of an animal cell
Arrey Reply
what happens when the eustachian tube is blocked
Puseletso Reply
what's atoms
Achol Reply
discuss how the following factors such as predation risk, competition and habitat structure influence animal's foraging behavior in essay form
Burnet Reply
cell?
Kuot
location of cervical vertebra
KENNEDY Reply
What are acid
Sheriff Reply
define biology infour way
Happiness Reply
What are types of cell
Nansoh Reply
how can I get this book
Gatyin Reply
what is lump
Chineye Reply
what is cell
Maluak Reply
what is biology
Maluak
what is vertibrate
Jeneba
what's cornea?
Majak Reply
what are cell
Achol
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Explanation:

Session beans are anonymous, they don't have keys to distinguish between them, because they are used by only the client who created them.

On the other hand, entity beans do have keys to be used for searching and finding.

Hide Choices Interactive Question Quiz Home Page
Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Edgar Delgado
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/enterprise-javabeans-ejb" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>