To decrease the cost of defect, it should be identified /removed in earlier phase rather than doing it some later stages. Latent and Masked Defect are the existing defects that has not yet caused a failure just because of exact set of condition and execution. Latent vs masked defect distinguishes based on exact set of condition and execution.
Following are the key differences between latent and Masked Defect -:
Latent defects -: It is an existing defect that has not yet caused a failure just because of the exact set of conditions has never been met.
Example-: suppose library application has facility to print dues or report either by laser or dot matrix printer. In order to get the same application in latent defect search laser printer. If he gets laser printer he uses the same and prints it. If he doesn’t get laser printer then search for dot matrix printer. If finds the same then use or else an error is thrown.
Masked defects -: It is an existing defect that has not yet caused a failure just because of another defect has prevented that part of the code from being executed.
Example-: suppose in same application has two defects one defect is search dot matrix and other is in print dot matrix. But because the search of the dot matrix fails the print dot matrix defect is never detected. So the print dot matrix defect is called as masked defect.