JustAnswer.com

Friday, November 9, 2007

J2EE Interview questions and answers

8. What is the difference between Session bean and
Entity bean?one?

The Session bean and Entity bean are two main parts of
EJB container.
Session Bean
--represents a workflow on behalf of a cliennt
--one-to-one logical mapping to a client. --created
and destroyed by a client
--not permanent objects
--lives its EJB container(generally) does noot survive
system shut down
--two types: stateless and stateful beans Entity Bean
--represents persistent data and behavior off this
data
--can be shared among multiple clients
--persists across multiple invocations
--findable permanent objects
--outlives its EJB container, survives systeem
shutdown
--two types: container managed persistence(CCMP) and
bean managed persistence(BMP)

9. What is "applet"

A J2EE component that typically executes in a Web
browser but can execute in a variety of other
applications or devices that support the applet
programming model.

No comments: