View Single Post
  #9 (permalink)  
Old 12-31-2007, 07:50 AM
spoon! spoon! is offline
Member
 
Join Date: Dec 2007
Posts: 12
spoon! is on a distinguished road
Code:
String a = new String("Java String"); String b = "Java String";
Both a and b are references. The references (a & b) live on the stack. The objects they reference are on the heap.
Reply With Quote