Why a compiler ( say javac ) has to know the size of the object?
<p>I wondered why the size of an object ( class ) has to be known by the compiler. I mean can't it be deferred to the runtime - when the object is really needed ?</p>

<p>Thanks</p>