Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2013/09/22
Feras Elias
by 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