Reported in a candidate post, Jan 2025
Java object memory and String vs StringBuilder vs StringBuffer
Filed under BlackRock
The question
The candidate was asked about objects and memory allocation in Java, general Java memory management, and the differences between String, StringBuilder and StringBuffer.
No write-up yet. Related questions below have one.
Related BlackRock questions
Collected from public candidate posts and coding forums. Updated Nov 2026.