Hi All,
I was reading tutorial on
java which says
1)"Assertions can be used to validate the parameters passed to a private method."
2)"However,assertions should not be used to validate parameters passed to public methods because a public method must check its arguments regardless of whether assertions are enabled or not."
Could any one explain above statements with example code please.........
Thanks in advance,