SCJP 1.6
SCJP 1.6
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
...In the book its given as the object created at line 4 is eligible for garbage collection but i think its line 3 onject that is eligible for garbag collection. can i gert a clarification
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 Raghavan Muthu:
[QB]Yes you are right Pradeep. Java does pass by reference only.QB]
Joanne
..No !! Both you and Pradeep are wrong. Java does pass by value - always.
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]
SCJP 1.6
..the object obj refers to the same object created at line 1 also o created referenced at line 4 still points to the same object(created at line1) is this right?
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]
Consider Paul's rocket mass heater. |