Is there any advantage for either approach?
Example 1:
class A { B b = new B(); }
Example 2:
class A { B b;
The second is an example of lazy initialization. First one is more simple initialization, they are essentially same.