|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
JAVA Exception
Hello!
It is said: Quote:
You know that exception like filenotfound ,when you compile,if the file be lost,the compiler does not show error,Butin runtime,It makes Error... Then how do you say this:checked exception is it will be checked at the compile time?
__________________
Beautiful pictures: http://shahcheragh.blogfa.com Stop this stupid war Last edited by tasoua : September 11th, 2007 at 01:08 PM. |
|
#2
|
|||
|
|||
|
You cannot check for run time exceptions during compile time.
Run time exceptions like FIleNotFoundException are based on dynamic data in the constructed object. It wouldn't be a helpful function to have it during compile time if the file in question resides on another system. You can always handle the error within your try/catch blocks and try to mitigate the problem being fatal.
__________________
Errors have been made. Others will be blamed. Group Member, Dallas PHP Users Group <b>(DPUG)</b> --... ...--, Eric |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > JAVA Exception |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|