what is Assertion?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by an object in java?

634


Can we override a variable in java?

553


What is the history of java?

552


Where import statement is used in a java program?

610


How do you convert boolean to boolean?

527






What is mysql driver class name?

555


Does A Class Inherit The Constructors Of Its Superclass?

538


Differentiate between overriding and overloading cases?

597


Can an abstract class be a final class?

531


Why set do not allow duplicates in java?

583


How many types of java are there?

564


What does t in java mean?

537


Why is stringbuffer faster than string?

494


What are static variables and functions?

629


When object is created and destroyed?

640