What is difference in between Java Class and Bean

Showing Answers 1 - 7 of 7 Answers

suresh

  • Nov 14th, 2005
 

its simply different both of them

  Was this answer useful?  Yes

anya

  • Nov 14th, 2005
 

A class with no restriction on accesors , mutators or constructor can be considered as a plain Java class.Java Bean is a spl java class with accessors(getters) and mutators(setters) for the instance variables present.Moreover, it can only have a defalut constructor.

  Was this answer useful?  Yes

mohan

  • Dec 16th, 2005
 

Hi,

Bean class have the follwing standards comapre to normalcalss.

1. palce a default constructor

2. declared varibales have private

3. access the varibales through getXXX() and setXXX() methods.

4. It is used store the values.

  Was this answer useful?  Yes

Ganesh Krishnan

  • Jun 28th, 2006
 

The most important difference is that a Bean is serializable. Just adding getters & setters to a class wont mark it as a Bean.

cheers

~gk

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions