Thread
:
What is the different ?
View Single Post
#
9
(
permalink
)
12-31-2007, 07:50 AM
spoon!
Member
Join Date: Dec 2007
Posts: 12
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.
spoon!
View Public Profile
Send a private message to spoon!
Find all posts by spoon!