Hi Tim,
All objects lived on heap but the question is specifically about object references which can be on stack or on the heap. For eg.
class
Test {
String string = null // Object Reference on heap
public void m1() {
String localString = null; // Obj Ref on stack
}
}
I hope this will clear your doubt.