Out of curiosity I came to write the following method:
public Object getObject() {
return this.getObject();
}
Why would Java allow me to write this? This method would never return any Object
and would result in a StackOverflow Error
.