Programming difference between POJO and Bean
问题 I have the following two classes. Can I say the first one is a POJO class and the second one as a Bean class? 1) POJO class, since it has only getter and setter method, and all the member are declared as private public class POJO { private int id; private String name; public int getId() { return id; } public String getName() { return name; } public void setId() { this.id = id; } public void setName() { this.name = name; } } 2) Bean class - all the member variables are private, has getters and