MY mENU


Wednesday 28 March 2012

What is the purpose of assert keyword used in JDK1.4.x?

 - In order to validate certain expressions. It effectively replaces the if block and automatically throws the AssertionError on failure. This keyword should be used for the critical arguments. Meaning, without that the method does nothing.

No comments:

Post a Comment