Re: what is assertion in java?
- From: Glen Pepicelli <lpepicel@xxxxxxxxxxxx>
- Date: Wed, 04 May 2005 22:50:28 GMT
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 --
.
- Prev by Date: JMS Broker Reconnect Issue.
- Next by Date: how to compile java with assert statement
- Previous by thread: JMS Broker Reconnect Issue.
- Next by thread: how to compile java with assert statement
- Index(es):
Relevant Pages
|
|