Home » Technical Questions » Programming

Which of the following is true?

Correct Answer: It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.


 


B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion