Recently i start hearing about POJO objects. I googleg it. I cant understand what they told in there. Can, anyone describe me about POJO? or
Consider a class "Person" with variables "id, name, address, salary" and a class "People". How to create POJO object for this scenario.
For your convenience, i have added some base.
public class Person
{
//variables
People people = new People();
private int id;
private String name;
private String address;
private int salary;
public int getId(){
return id;
}
public String getName(){
return name;
}
public String getAddress(){
return address;
}
public int getSalary(){
return salary;
}
public void setId(){
this.id = id;
}
public void setName(){
this.name = name;
}
public void setAddress(){
this.address = address;
}
public void setSalary(){
this.salary = salary;
}
}