what is java assertion job java inteview question and answer

preview_player
Показать описание


What is java "assertion" ? Java Interview Question and Answer :

What is Java "assertion" ?

Assertion includes a Boolean expression. If the Boolean expression evaluate to false "AssertionError" is thrown.

Assertion helps a programmer to debug the code effectively.

Assertion code is removed when the program is deployed. Below is a code snippet which checks if LoginManager object is null.

LoginManager objLoginMgr = null;

//use assert to check if the object is null by any chance...

assert objLoginMgr != null;

You can submit your resume for right Job
Рекомендации по теме
join shbcf.ru