I am currently using java beans model for constructing a POJO with many parameters
example:
Class Person {
// various fields
// the getters and setters for the fields
}
So for constructing Person, I do
Person a = new Person();
// then setting all the fields(around 20) using the setters.
Now i am thinking about switching to java builder pattern for constructing these kinds of data holder objects. I guess builder pattern is better when it comes to readability. So which is better in terms of efficiency and performance?