Is there any practical difference between those two ways of instantiating an object?
public class myClass { private myType myObject = new myType(); } and
public class myClass { private myType myObject; public myClass() { myObject = new myType(); } } Thanks for helping.
Object). Initializing your fields inside or outside the constructor changes the order in which they are initialized.