What are assertions in java?

Answer Posted / mrunalini

assertion is a statement in the Java programming language that enables you to test your assumptions about your program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

799


What is the difference between Error, defect,fault, failure and mistake?

857


What is anti pattern in cyber security?

722


do I need to use synchronized on setvalue(int)? : Java thread

742


How will you reverse a link list without using recursion?

770


What is a for loop in java?

803


Is null in java?

733


Explain the features of interfaces in java?

736


Why collection doesn’t extend cloneable and serializable interfaces?

857


What is supplier in java?

743


What is the difference between the font and fontmetrics classes in java programming?

683


Does every java program need a main?

734


How we can skip finally block of exception even if some exception occurs in the exception block in java?

713


Is hashmap thread safe?

753


Is java a virus?

712