****************************<br />For Some Dreams.....<br />One Lifetime Is Not Enough.<br />****************************
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]
****************************<br />For Some Dreams.....<br />One Lifetime Is Not Enough.<br />****************************
Originally posted by Campbell Ritchie:
I think there is a mistake in the finalize method on the website you quoted, Raghavan Muthu. They create the file reading object in one method, then close and set it to null in finalize(). That is a mistake; until finalize() is called, the file is unavailable to other objects.
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 Campbell Ritchie:
It is probably only worthwhile using it when there is "native" code
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
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]
Originally posted by Campbell Ritchie:
It might be an example of the sort of thing you can put in finalize() but it actually serves to emphasise how little one actually uses finalize(). You were unlucky picking that particular website.
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. |