Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain the difference between, Java Class and Bean?

Answer Posted / john

A Java class is meant to carry out the different database
operations like retrtieveing data, inserting data and
updating data.

The EJB has the business logic within it. the EJB decides
what the business requires and carries out different
transactions. It makes use of the Java class to interact
with the database.

The Java Bean is simple java class which is contains Getters
and Setters. They are just meant to modify the values of the
variables. They neither contain any business logic nor do
they interact with the database.

Generaly a Java Class would retrieve some data and this data
is assigned to variables using the Setter method of the Java
Bean. If we want to retrieve the value of the cariable again
we use a Getter method

Is This Answer Correct ?    22 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ejb ql?

1062


Enlist the declarative transaction types?

1022


What is software architecture of ejb?

983


Which is more beneficial: Stateful or Stateless Bean?

993


What do you mean by ejb?

987


What is the difference between session and entity beans? When should I use one or the other?

971


What is the procedure for the creation of stateless ejb?

970


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

1009


Define Initial Context?

1012


Define SessionContext ?

1061


What’s the difference between hibernate and ejb 3?

1008


What is ejb context?

971


What is singleton session bean?

1029


how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?

2978


What does @singleton annotation do?

1014