• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lets join also preparing mocks

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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.
 
Hung Tang
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • 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.
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct answer is B and C. F was one kind of eye-wash.
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About option A, rarely used data should not be persisted at all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic