ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
تاريخ النشر: 2013/09/22
Feras Elias
من قبل 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.)

المزيد من الأسئلة المماثلة