ልዩነት

ማስታወቂያዎች
<ስክሪፕት> (adsbygoogle = window.adsbygoogle || [])። ግፋ ({});

ትርጉም - ቃሉ ልዩነት፣ ያመለክታል ድርጊት that occurs during the execution of a ፕሮግራም, and disrupts the regular flow of instructions. In some cases, the ኮምፕዩተር ይችላል መያዣ the exception on its የግል and the program continues to run. However, if the exception is severe, then the program may be forced to quit.

In many programming languages, exceptions are supported and used to control the flow of the program. Other languages only use exceptions to catch fundamental runtime errors, such as failure allocating አእምሮ or system-level errors.

If the developer has done his/her research before writing the ኮድ, then the code should ideally ባህሪ exception handling instructions that will እርዳታ the program automatically handle any resulting exceptions during execution.

የአጠቃቀም ምሳሌ - “A C++ program may throw the መጥፎ_አካል exception when memory cannot be allocated and the የስርዓት_ስርዓት exception when the operating system produces an ስሕተት. "

ማስታወቂያዎች