I' have a question about initialization of List in the POJO as it follows the next code:
public class Person {
 //other fields...
 private List<String> friends=new ArrayList<>();
     public List<String> getFriends() {
        return friends;
     }
     public void setFriends(List<String> friends) {
        this.friends = friends;
    }
}
OR is it better like this and have initalization in other class(like for example Bean(JSF))
public class Person {
 //other fields...
 private List<String> friends;
     public List<String> getFriends() {
        return friends;
     }
     public void setFriends(List<String> friends) {
        this.friends = friends;
    }
}
So my question is what approach is better?
 
     
     
     
     
     
     
    