Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

what is the difference between fail-fast and fail-save in java?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2013/09/22
Feras Elias
par Feras Elias , Technical Support Officer , Legal Affairs Department

"Fail safe" means: it won't fail.

"Fail fast" means: it may fail

... and the failure condition is checked aggressively so that the failure condition is detected before damage can be done. The alternative to "fail safe" and "fail fast" is to fail unpredictably; e.g. to sometimes give the wrong answer or throw some unexpected exception. (This was the behaviour of some standard implementations of the Enumeration API in early versions of Java.)

More Questions Like This