Question
Which of the following statements is true?
Answer: Option A
Was this answer helpful ?
Option A is correct because it is sometimes advisable to thrown an assertion error even if assertions have been disabled.
Option B is incorrect because it is considered appropriate to check argument values in private methods using assertions.
Option C is incorrect; finally is never bypassed.
Option D is incorrect because AssertionErrors should never be handled.
Was this answer helpful ?
More Questions on This Topic :
Question 2.
Which statement is true?
....
Question 3.
Which of the following statements is true?
....
Question 7.
public class Test
{
public void foo()
{
....
Submit Solution