← Goldman Sachs questions
Reported in a candidate post, Jul 2025

Compile-time versus runtime binding with field hiding

Filed under Goldman Sachs

Given a parent class and a subclass that both define a field and a method, predict the output of accessing them through a parent-type reference that holds a child object, and explain why fields bind…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.