Stylistically is it better to initialise Java fields within a constructor or at the point where the field is declared? For example:
public class Foo { private final List<String> l; public Foo() { this.l = new LinkedList<String>(); } } ... or
public class Foo { private final List<String> l = new LinkedList<String>(); } I have typically favoured the former as it seemed clearer. However, the latter obviously results in more compact code.