0
Q:
| A) It is appropriate to use assertions to validate arguments to methods marked public | B) It is appropriate to catch and handle assertion errors |
| C) It is NOT appropriate to use assertions to validate command-line arguments | D) None |
Answer: C) It is NOT appropriate to use assertions to validate command-line arguments
Explanation:
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.
Aptitude and Reasoning
General Knowledge
Puzzles
Interviews
Technical
Certifications
Exams
Job
Roles
True or False
Exams