Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Exceptions in C++ and Java (http://www.go4expert.com/forums/exceptions-cpp-java-t1933/)

shabbir 18Nov2006 18:29

Exceptions in C++ and Java
 
I always wondered whether there's any reason why exception specifications are enforced at runtime, rather than at compile-time like in Java? (This was prompted by reading an article on GOTW, but lost the link and I am not sure about that as well) Is there something about C++ that makes it harder/impossible to check at compile-time or is there anything specific advantage of making it at compile time in Java?


All times are GMT +5.5. The time now is 22:49.