Difference Between java bean And POJO:
The Java-Beanness of a POJO is that its 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){...};
Additionally, true JavaBeans must implement Serializable and have a no-argument constructor.
Additionally, true JavaBeans must implement Serializable and have a no-argument constructor.
POJOs don't have these restrictions.
0 comments
Post a Comment