Re: what is assertion in java?




The point is to verify your software is in a valid state.

For example if you KNOW the x should be greater than Y then you let your program in on that knowledge:

assert ( x > Y)

This way if somehow y is greater than x your program tells you:

arrestion failed (x > y) line 4414.

SOAP wrote:

what is assertion in java?
thank you


~ ªÑ²¼»ù®æ¦³¤É¦³¶^, ¶R½æ­n¯à©Ó¾á­·ÀI ~

~ Samba, more than a low cost File and Printer server ~
-- Let us OpenSource --

.



Relevant Pages