Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is Assertion?

Answer Posted / raja moram

The concept of suspending the execution of a function based
on the user defined condition is known as ASSERTION.
We implement the concept of Assertions using 'assert' keyword.
We use 'assert' keyword by mentioning a condition, if the
mentioned condition is not satisfied the 'assert' keyword
suspends the execution of the method in the middle and
transfers the control along with the 'AssertionError' class
object to the calling place.
Here 'AssertionError' is the subclass of 'Error'class.
To enable Assertions application:
java -ea <className>
This concept of ASSERTIONS is introduced from JDK 1.5 onwards

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define linked list and its features with signature?

932


What is size of int in java?

996


Which list is sorted in java?

965


why doesn't java run on all platforms?

978


What do bitwise operators do?

952


Write the algorithm to check the number non-leaf nodes in a tree.

1009


Variable of the boolean type is automatically initialized as?

960


What is boolean keyword in java?

1075


How objects are stored in java?

983


What is a generic code?

977


What is the difference between instanceof and isinstance?

986


What is += mean in java?

950


what do you understand by synchronization? : Java thread

940


Explain the difference between jdk, jre, and jvm?

995


What is high level language in computer?

967