Assertion in java


 

Assertion in java

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

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

Ads