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 is ejb in java?
What is bean in ejb?
What is ejb container?
What is stateless authentication?
What are the types of enterprise bean?
What are the benefits of ejb?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
How does ejb work in java?
What are ejbs used for?
What do you mean by ‘hot deployment’ ?
What is ejb and its properties?
What are the callback annotations for the stateless bean?
Name the attributes of javax.ejb.stateful.
Is it possible to share an httpsession between a jsp and ejb?
What are the types of ejb?