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?

Answers were Sorted based on User's Feedback



what is Assertion?..

Answer / bindhu

An assertion is a statement enables us to test our
assumptions about the program.

Each assertion contains a boolean expression that
our believe will be true when the assertion executes. If it
is not true, the system will throw an error.

Is This Answer Correct ?    36 Yes 8 No

what is Assertion?..

Answer / myluvdeepu

assertion is a condition which on being true will execute the statement.
else(if condition is false) it will throw an assertion error.)

if we want to enable the assertion, we need to enable the assertion by the option -ea.

Is This Answer Correct ?    10 Yes 4 No

what is Assertion?..

Answer / 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

what is Assertion?..

Answer / sulakshna

Assertion is a predicate expressing a condition that a
database always satisfy.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Core Java Interview Questions

Does variable declaration allocate memory?

0 Answers  


What is widening and narrowing in java? Discuss with an example.

0 Answers   Amdocs,


What are the Class Libraries ?

0 Answers   Wipro,


What is gui programming?

0 Answers  


What are integer overflows and underflows and how to handle them?

3 Answers   Wipro,


What is java full form?

0 Answers  


What does arrays sort do in java?

0 Answers  


How to reverse string in java?

0 Answers  


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

0 Answers  


define System.out.println(); what is the meaning!

19 Answers   Accenture,


How to instantiate member inner class?

0 Answers  


What is the r character?

0 Answers  


Categories