Hi These are the simple findings but will effect your development alot...
As a Java Developer,The things to remember
1) Never catch a Exception until you know the API or some code you are writing will not cause any problem.
Catch only the specific CHECKED Exception.... Exception class is a Parent class to the RuntimeException also.
2) java.io API...
never believe the file operation will work....
once we read a input stream to write into any file and if we try to use the same input stream to write into other files ... it won't work.. oops... the input stream can at a time reads once and next time on words it will give null.
Never think file.delete(filename) will delete the files... it may or may not...
Make sure that all the operation with the File I/O will work exactly the way you want....
if you are not doing a proper test then you will be in a Hot Soup....
Friday, October 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment