1.what is javadoc and how it works?
2.what Strong typing means?
My Answer :-
STFW
3.if we want to control the input ,it is better to use exeption handeling (try chatch),or a single is to control the worng input,
whitch one is faster?
Exception Handling should be used for only handling "exceptional" situations. What you have mentioned can be done by performing appropriate validations on Input
catch(ArithmaticExeption a){
}
catch(IndexOutOfBoundsExeption a){
}
Yes its perfectly fine to have both variables named "a", because "a" is visible only inside the corresponding catch blocks and not outside of them. It wouldn't have killed you to just compile a program with the above situation, if it was incorrect at most you would have received a compile error.
Last edited by stephen84s; Mar 8th, 2009 at 3:55 am.
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
Offline 1,316 posts
since Jul 2007