Share on Google+Share on Google+

Assertion in java

In this topic you will learn about different type of assertion, where and how it is used.

In this tutorial we are going to tell you what is assertion in Java and how to use it in your Java program to improve the quality of your applications! What is Assertion in Java According to Sun, we can use assertion to test our assumption about programs. That means it validates our program! In another words we can say that assertions ensures the program validity by catching exceptions and logical errors. They can be stated as comments to guide the programmer.

Click on the following link to know all about assertion in details.

Assertion in Java

How to compile and how to Enable and Disable Assertion


Posted on: July 2, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null