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
Explain the architectural relationship between JavaBeans and JTA?
Is soap stateless or stateful?
How does ejb invocation take place?
How does ejb container work?
What is EJB server provider?
What is ejb ql?
What are the various types of entity beam?
Mention the three levels for applying interceptor methods.
Is ejb be called from another ejb? If yes then how?
How entity beans support container managed persistence?
What is the difference between ejbcreate() and ejbpostcreate?
What is @injectmock?
What is the difference between @requestparam and @pathvariable?
How can enterprise javabeans be accessed from active server pages?
How does ejb invocation happens?