ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What advantage does an entity bean have over a sessin bean?
 Question Submitted By :: Raviraja N
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What advantage does an entity bean have over a sessin bean?
Answer
# 1
Entity Bean is a Java class which implements an Enterprise
Bean interface and provides the implementation of the
business methods. There are two types: Container Managed
Persistence (CMP) and Bean-Managed Persistence (BMP).
Session Bean is used to represent a workflow on behalf of a
client. There are two types: Stateless and Stateful.
Stateless bean is the simplest bean. It doesn't maintain any
conversational state with clients between method
invocations. Stateful bean maintains state between invocations.
 
Is This Answer Correct ?    5 Yes 1 No
Uppi
 
  Re: What advantage does an entity bean have over a sessin bean?
Answer
# 2
entity beans are generally used for database interaction 
thus provide various EJB services like 
transctions,persitence etc which using the seesion bean 
will be manully handeled by the programmer while 
interacting with Db,session beans are basically for 
processing the logic not for DB entities
 
Is This Answer Correct ?    4 Yes 0 No
Tarunam Verma
 
 
 
  Re: What advantage does an entity bean have over a sessin bean?
Answer
# 3
An entity bean represents an entity such as an employer, 
student, etc. A session bean is a type of EJB (Enterprise 
JavaBean) that encapsulates the logic of a business process 
and business rules. Entity beans offer the following 
advantages over session beans:

Persistence: Entity beans are persistent, i.e., the state 
of the bean exists beyond the lifetime of the application 
or the application process. There are two types of 
persistence: Bean-managed and Container-managed. In Bean-
managed persistence, the code contains the calls that 
access the database. In Container-managed persistence, the 
EJB container generates the database calls.
Shared Access: Multiple clients can share the entity beans. 
It works within the transactions as the client changes the 
data.
Primary Key: Each entity bean has a unique object 
identifier that enables the client to locate a particular 
entity bean.
Relationship: An entity bean can relate to other entity 
beans. Both CMP and BMP can be used to maintain 
relationships.
 
Is This Answer Correct ?    0 Yes 1 No
Gaurav
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the return type of a program?s main() method?  2
what is difference between colection and collections? Tech-Mahindra8
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?  1
how to handle exceptions in core applications? CSS2
How can you say HashMap is syncronized? IBM13
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky EDS5
What is garbage collection in Java, and how can it be used ? Wipro10
Difference String and String Buffer  3
why java does not support multiple inheritance Mind-Tree14
Explain different ways of passing arguments to sub-routine?  1
strings in java are objects.why?  2
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem? Honeywell2
What is the difference between Trusted and Untrusted Applet ? IBM1
how many design pattern r there? and wht design pattern u use and why ? HP5
what is overloading in java? DNS4
What is meant by constructor?  4
What is System class and its purpose?  2
whats the life cycle of jsp Satyam11
What is an array and a vector? How they different from each other?  3
What is the Dictionary class?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com