If you didn’t initialize you wouldn’t be able to access the objects property (Because it would be undefined).
var test = {
definedProperty : "Hello"
};
alert(test.definedProperty);
alert(test.undefinedProperty);
1
solved Basic Java Initialize concept [closed]