O'Reilly logo
  • Jiaming Yi thinks this is interesting:

Book d = c


Cover of Head First Java, 2nd Edition


this is to say, take a copy of the reference variable c (the pointer), and store it in c, which is a new space in the stack. Since only the reference is copied, the two reference variables are pointing to (refer to) the same block of data in the heap.