Programming - Assertion

You Are Here :: Home > JAVA > Assertion - Jdbc

 
1.

An _________________ is a statement in Java that enables you to test your assumptions about your program.                         


A. assertion B. negation
C. static D. instance




2.

Each _____________ contains a boolean expression that you believe will be true when the assertion executes.                         


A. assertion B. negation
C. static D. instance




3.

Assert ________________ as requirement of client                        


A. precondition B. postcondition
C. increment D. decrement




4.

Assert ________________ as effect of client method                        


A. precondition B. postcondition
C. increment D. decrement




5.

Don’t use assertions to flag user errors—why not?                        


A. B.
C. D.




6.

____________ are labeled in stack trace with the file and line number from which they were thrown                        


A. Assertion failures B. negation
C. static D. instance




1

2

3

4

5

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on