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
Can a private method of a superclass be declared within a subclass?
Can a constructor be made final?
In java, how many ways you can take input from the console?
How to make a write-only class in java?
What is a dot notation?
What is the declaration statement?
Why singleton pattern is better than creating singleton class with static instance?
Which class should you use to obtain design information about an object in java programming?
Why put method is idempotent?
What are the two types of streams offered by java 8?
Is there any difference between nested classes and inner classes?
Does a function need a return?
Which is best ide for java?
Can we override constructor in java?
What is a package in java? List down various advantages of packages.