< Java Programming < Statements

Assertion is just simply a check point to validate the conditional statement. For Example : if you want to check a age validation which can not be exceed 18 year then we can write this statement - > Assert age >= 18:Eligible to vote;

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.