|
![]() |
"And the trouble is, if you don't risk anything, you risk even more." -- Erica Jong.
[My Blog]
All roads lead to JavaRanch
MooN
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Raghwan I do agree with you that it creates two object at pool but could you tell ne that how can we access the actual object "Sample".
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
s is not an object!!! s is a reference to an object.Originally posted by dhwani mathur:
but value is getting saved in single object s right
Originally posted by dhwani mathur:
But raghavan my doubt is relevant to String which is immutable,not StringBuffer which is Mutable,isnt it?
String s="sample"
s+="test"
in this case also 2 objects get created i agree with this,but value is getting saved in single object s right.......than it means that value of object s is changing... although 2 object of same name s are created but all in all value of single object s gets changed.........
please explain this.......![]()
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Originally posted by dhwani mathur:
what i understood is that now reference s is pointing to new value that too after concatenation........
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
ZORAM<br />"If it's true that we are here to help others,<br />then what exactly are the others here for?"
Originally posted by Zarom Paul:
Hi Raghavan Muthu,
Why didn't you welcomed me?
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |