advancedJVM & GC337 of 436
Object Header, Mark Word & Class Pointer
Tests whether you know every Java object's header carries a mark word (hash code, GC age, and lock state bits) plus a class pointer to its Klass metadata, and that this fixed overhead is why tiny objects are surprisingly expensive in bulk.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response