What's the difference between doing this:
public class SomeClass {
SomeObject obj = new SomeObject();
//rest of the code
}
and this
public class SomeClass {
SomeObject obj;
public SomeClass(){
obj = new SomeObject();
}
//rest of the code
}