Interview Questions

What does assert() method do?

C# Interview Questions and Answers


(Continued from previous question...)

186. What does assert() method do?

In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.

(Continued on next question...)

Other Interview Questions