power_settings_new

What is the difference between assert and verify?

by (1.1k points)
asked
0 votes
78 views

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

2 Answers

answered by
0 votes
Assert function will verify the condition and if fails it will terminate the program where in verify will check condition and if it fails, it will still continue the execution without terminating it.

Its very useful when we are doing some exception message checks in application
answered by
0 votes

Assert :  Assert is a validation which verify the condition and if the condition get failed, it will break the program and do not proceed further.

Verify : Verify is a validation which verify the condition and if the condition get failed, it will not break the program and proceed further.

add
...