What is difference in between Java Class and Bean ?

What is difference in between Java Class and Bean ?

The Java Bean is simple java class which is contains Getters and Setters methods nothing else. 

These methods can only used to set or get the values of the variables. 

They neither contain any business logic nor do they interact with the database. 

 Whereas a plain old java class contains the business logic, provides some data processing capabilities, database interaction, etc.


By:Jalees
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher