answersLogoWhite

0

Answer

Mostly the java class and the Bean class are similar one.

In Bean class we have getter and setter methods.

Its just a naming convention.

Regards

Santhosh rao


In

http://forums.sun.com/thread.jspa?threadID=526214

Java Beans follow the Bean conventions:

(1) Default, no-arg ctor,
(2) Serializable,
(3) getX()/setX() or isX()/setX() naming convention for read/write access to private data member X,
(4) Can use java.bean.PropertyChangeEvent to notify interested parties when values change.
(5) Can use java.bean.PropertyChangeListener to register for notification when a particular property changes.

"Normal" Java classes aren't required to follow any of these conventions.

There's a great [url=http://java.sun.com/docs/books/tutorial/javabeans/]tutorial[/url] on Java Beans from Sun.

User Avatar

Wiki User

15y ago

What else can I help you with?