Hi,
What is meant by POJO and java bean in the sense that we can have object of a java bean.
can any one fed light on this topic
Thnakz
Arun k s
-
Difference Between java bean And POJO (2 messages)
- Posted by: Arun k s
- Posted on: July 12 2005 02:19 EDT
Threaded Messages (2)
- Difference Between java bean And POJO by Duncan Mills on July 12 2005 06:46 EDT
- JavaBean restrictions by Joe Wolf on July 12 2005 13:19 EDT
-
Difference Between java bean And POJO[ Go to top ]
- Posted by: Duncan Mills
- Posted on: July 12 2005 06:46 EDT
- in response to Arun k s
The Java-Beanness of a POJO is that it's public attributes are all accessed via getters and setters that conform to the JavaBeans conventions.
e.g.
private String foo;
public String getFoo(){...}
public void setFoo(String foo){...}; -
JavaBean restrictions[ Go to top ]
- Posted by: Joe Wolf
- Posted on: July 12 2005 13:19 EDT
- in response to Arun k s
Additionally, true JavaBeans must implement Serializable and have a no-argument constructor. POJOs don't have these restrictions.