This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
MustI program for closing data file? I don't code for closing file.
posted 12 years ago
I think it is probably better if you do. All I did was to close my raf on my data class' finalize() method. But that wasn't the best way to do it, as it was probably never called by the GC. Never the less, I didn't lose any marks for that. But close it upon your server's or standalone modes' exit. I think that is best.