Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

lets join also preparing mocks

 
Ranch Hand
Posts: 2378
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'ld also like to contribute preparing mocks. Here is my first one.
Q1. Find out two true statements from the following.
A) Rearly used data should be represented as entity bean.
B) Session beans should be used for transaction controlled business logic.
C) Session Beans are good for logic that's shared outside of the limited context of a single application.
D) It's a good practice to put business logic into data objects.
E) Stateful session beans may serve many clients during their lifetime.
F) Entity beans may not have a unique property.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Q1. Find out two true statements from the following.
A) Rearly used data should be represented as entity bean.
B) Session beans should be used for transaction controlled business logic.
C) Session Beans are good for logic that's shared outside of the limited context of a single application.
D) It's a good practice to put business logic into data objects.
E) Stateful session beans may serve many clients during their lifetime.
F) Entity beans may not have a unique property.


My answer is b and e.
IMO, c and d is pretty vague. But good job, keep the questions coming.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I go with B and C.
E is wrong as SFSB serves one client during its life.
A - well, not quite sure about 'rarely used data'. Again, rarely used is not always persistent.
D - definetely not SessionBeans are for that.
F - no. But clarifying the term 'unique properly' would be appreciated.
cheers
 
Ashik Uzzaman
Ranch Hand
Posts: 2378
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The correct answer is B and C. F was one kind of eye-wash.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can any one tell me what's wrong with A or has Ashik misphrased the question or have I not understood it?
 
Ashik Uzzaman
Ranch Hand
Posts: 2378
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
About option A, rarely used data should not be persisted at all.
 
reply
    Bookmark Topic Watch Topic
  • New Topic