Explain the difference between, Java Class and Bean?

Answer Posted / almeja del río

from:
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.

Is This Answer Correct ?    12 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is ejb a framework?

535


What is stateless ejb?

533


What is stateless and stateful session bean in ejb?

496


What is stateless session bean?

556


Explain transaction and various methods to manage it?

540






A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

533


Is it possible to share an httpsession between a jsp and ejb?

523


can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

1788


Differentiate Conversational from Non-conversational interactions?

550


What is ejb javatpoint?

576


Is state maintained by a Stateless bean?

571


What is use of @postconstruct?

527


What are the differences between ejb 3.0 and ejb 2.0?

531


How to create ejb project in eclipse?

537


What is stateless and stateful?

520