R
Rafael Veronezi
I have two simple questions...
One is about, how to verifiy if an integer variable has been initialized?
I mean, i have a private field declared as int, and a method that access
this field, and needs to test it to verify if it has been previously
initialized...
Actually i'm testing if it's value is equals to zero... Don't know is that
the way, I know I can't test it against null...
The other simple question is...
I'm using a throw statement in one of my methods...
When the method reachs the throw, I know it halt the execution of the
method, but, if the calling function treats this exception with a
try...catch, is the method being executed still halts, or continue it's
procession at the point where the exception was throw, after the successful
treatment on the try...catch?
Thanks,
Rafa
One is about, how to verifiy if an integer variable has been initialized?
I mean, i have a private field declared as int, and a method that access
this field, and needs to test it to verify if it has been previously
initialized...
Actually i'm testing if it's value is equals to zero... Don't know is that
the way, I know I can't test it against null...
The other simple question is...
I'm using a throw statement in one of my methods...
When the method reachs the throw, I know it halt the execution of the
method, but, if the calling function treats this exception with a
try...catch, is the method being executed still halts, or continue it's
procession at the point where the exception was throw, after the successful
treatment on the try...catch?
Thanks,
Rafa