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
What do you understand by session facade?
Who took over ejb?
What is ejb home object?
What optimization could I use if the ejb container is the only point of write access to the database?
What is session facade in ejb?
What is remote interface in ejb?
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?
Why do we need ejb?
What is use of @postconstruct?
What are ejbs used for?
What is an ejb container?
Define Clone?
How to determine, that beans are TX or not?
What do you mean by timer service and where it is used?
What is activemq used for?