View Single Post
  #10 (permalink)  
Old 12-31-2007, 07:56 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by spoon! View Post
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.
Indeed. What is the problem? Maybe I misrepresented what I was trying to convey. You also didn't answer nor refute my last post.
Reply With Quote