Amisha Shah.<br />SCJP 1.4
Sanjeev Sarkar<br />Java Developer
SCJP 1.5<br />SCWCD 1.4
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Vivek Kumar Yadav
SCJP, SCWCD
"Know where to find the solution and how to use it - that's the secret of success."
Amisha Shah.<br />SCJP 1.4
Placing objects in pool happens only when we use literal assignments i.e. String s1="String" but not when we use "new" to create object i.e. String s1= new String("String")
"Know where to find the solution and how to use it - that's the secret of success."
Kiran Kumar.
Kiran Kumar.
When the compiler's not happy, ain't nobody happy...
When the compiler's not happy, ain't nobody happy...
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
When the compiler's not happy, ain't nobody happy...
Objects from pool are never eligible for GC just because it's managed by pool and have always valid references for it.
Regards,<br />Naveen<br />SCJP 5 - 83%<br />SCWCD - 84%
Regards,<br />Naveen<br />SCJP 5 - 83%<br />SCWCD - 84%