Whenever you're ready, walk me through how you'd approach this.
Answer basic programming language questions in C++ or Java.
The interviewer may ask you to explain core language features, such as primitive and reference types, object lifetime, inheritance, exceptions, collections, and pass-by-value behavior. Give concise explanations and use small examples when helpful.
Stay within standard C++ or Java language fundamentals; do not assume a particular framework or application domain.